From c384703de35e3c291a3cd22f5b9eb6fa659cc5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D1=82=D0=B0=D0=BC?= Date: Sat, 12 Oct 2019 21:03:02 +1000 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=B0=D1=80=D0=BE=D0=BB=D1=8F=20=D0=B2=20Chrome=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/skins/default/public/js/app.js | 2 +- resources/themes/default/public/js/app.js | 2 +- resources/themes/default/views/auth/register.blade.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/skins/default/public/js/app.js b/resources/skins/default/public/js/app.js index 3ac7af43..7f903fc3 100644 --- a/resources/skins/default/public/js/app.js +++ b/resources/skins/default/public/js/app.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+OQi":function(t,e,n){var r=n("Ysmm");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"+dQi":function(t,e,n){!function(t){"use strict";t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(t,e,n){return r=t,i=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(s&&"@"==t.peek()&&t.match(p))return e.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=m),h("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&t.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&t.eat(">"))return h("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return t.eat("*")?(e.tokenize=v,v(t,e)):t.eat("/")?(t.skipToEnd(),h("comment","comment")):Gt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(t.eat("="),h("operator","operator",t.current()));if("`"==r)return e.tokenize=y,y(t,e);if("#"==r)return t.skipToEnd(),h("error","error");if("<"==r&&t.match("!--")||"-"==r&&t.match("->"))return t.skipToEnd(),h("comment","comment");if(d.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),h("operator","operator",t.current());if(u.test(r)){t.eatWhile(u);var i=t.current();if("."!=e.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return h(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function v(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return h("comment","comment")}function y(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",t.current())}var g="([{}])";function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),l=g.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(e.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}var k={state:null,column:null,marked:null,cc:null};function C(){for(var t=arguments.length-1;t>=0;t--)k.cc.push(arguments[t])}function O(){return C.apply(null,arguments),!0}function E(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function A(t){var e=k.state;if(k.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new j(r,n.vars,!0):null}return E(e,n.vars)?n:new j(n.prev,new T(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!E(t,e.localVars))return void(e.localVars=new T(t,e.localVars));n.globalVars&&!E(t,e.globalVars)&&(e.globalVars=new T(t,e.globalVars))}function S(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function j(t,e,n){this.prev=t,this.vars=e,this.block=n}function T(t,e){this.name=t,this.next=e}var N=new T("this",new T("arguments",null));function P(){k.state.context=new j(k.state.context,k.state.localVars,!1),k.state.localVars=N}function L(){k.state.context=new j(k.state.context,k.state.localVars,!0),k.state.localVars=null}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function $(t,e){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,k.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function q(){var t=k.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function R(t){return function e(n){return n==t?O():";"==t||"}"==n||")"==n||"]"==n?C():O(e)}}function I(t,e){return"var"==t?O($("vardef",e),bt,R(";"),q):"keyword a"==t?O($("form"),z,I,q):"keyword b"==t?O($("form"),I,q):"keyword d"==t?k.stream.match(/^\s*$/,!1)?O():O($("stat"),H,R(";"),q):"debugger"==t?O(R(";")):"{"==t?O($("}"),L,at,q,M):";"==t?O():"if"==t?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==q&&k.state.cc.pop()(),O($("form"),z,I,q,Ot)):"function"==t?O(jt):"for"==t?O($("form"),Et,I,q):"class"==t||c&&"interface"==e?(k.marked="keyword",O($("form","class"==t?t:e),Mt,q)):"variable"==t?c&&"declare"==e?(k.marked="keyword",O(I)):c&&("module"==e||"enum"==e||"type"==e)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==e?O(Wt):"type"==e?O(Nt,R("operator"),ft,R(";")):O($("form"),_t,R("{"),$("}"),at,q,q)):c&&"namespace"==e?(k.marked="keyword",O($("form"),D,I,q)):c&&"abstract"==e?(k.marked="keyword",O(I)):O($("stat"),Q):"switch"==t?O($("form"),z,R("{"),$("}","switch"),L,at,q,q,M):"case"==t?O(D,R(":")):"default"==t?O(R(":")):"catch"==t?O($("form"),P,F,I,q,M):"export"==t?O($("stat"),It,q):"import"==t?O($("stat"),Dt,q):"async"==t?O(I):"@"==e?O(D,I):C($("stat"),D,R(";"),q)}function F(t){if("("==t)return O(Pt,R(")"))}function D(t,e){return U(t,e,!1)}function B(t,e){return U(t,e,!0)}function z(t){return"("!=t?C():O($(")"),D,R(")"),q)}function U(t,e,n){if(k.state.fatArrowAt==k.stream.start){var r=n?Y:Z;if("("==t)return O(P,$(")"),it(Pt,")"),q,R("=>"),r,M);if("variable"==t)return C(P,_t,R("=>"),r,M)}var i=n?W:K;return _.hasOwnProperty(t)?O(i):"function"==t?O(jt,i):"class"==t||c&&"interface"==e?(k.marked="keyword",O($("form"),Lt,q)):"keyword c"==t||"async"==t?O(n?B:D):"("==t?O($(")"),H,R(")"),q,i):"operator"==t||"spread"==t?O(n?B:D):"["==t?O($("]"),Kt,q,i):"{"==t?ot(et,"}",null,i):"quasi"==t?C(V,i):"new"==t?O(function(t){return function(e){return"."==e?O(t?J:X):"variable"==e&&c?O(vt,t?W:K):C(t?B:D)}}(n)):"import"==t?O(D):O()}function H(t){return t.match(/[;\}\)\],]/)?C():C(D)}function K(t,e){return","==t?O(D):W(t,e,!1)}function W(t,e,n){var r=0==n?K:W,i=0==n?D:B;return"=>"==t?O(P,n?Y:Z,M):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?O(r):c&&"<"==e&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?O($(">"),it(ft,">"),q,r):"?"==e?O(D,R(":"),i):O(i):"quasi"==t?C(V,r):";"!=t?"("==t?ot(B,")","call",r):"."==t?O(tt,r):"["==t?O($("]"),H,R("]"),q,r):c&&"as"==e?(k.marked="keyword",O(ft,r)):"regexp"==t?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function V(t,e){return"quasi"!=t?C():"${"!=e.slice(e.length-2)?O(V):O(D,G)}function G(t){if("}"==t)return k.marked="string-2",k.state.tokenize=y,O(V)}function Z(t){return b(k.stream,k.state),C("{"==t?I:D)}function Y(t){return b(k.stream,k.state),C("{"==t?I:B)}function X(t,e){if("target"==e)return k.marked="keyword",O(K)}function J(t,e){if("target"==e)return k.marked="keyword",O(W)}function Q(t){return":"==t?O(q,I):C(K,R(";"),q)}function tt(t){if("variable"==t)return k.marked="property",O()}function et(t,e){return"async"==t?(k.marked="property",O(et)):"variable"==t||"keyword"==k.style?(k.marked="property","get"==e||"set"==e?O(nt):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(rt))):"number"==t||"string"==t?(k.marked=s?"property":k.style+" property",O(rt)):"jsonld-keyword"==t?O(rt):c&&S(e)?(k.marked="keyword",O(et)):"["==t?O(D,st,R("]"),rt):"spread"==t?O(B,rt):"*"==e?(k.marked="keyword",O(et)):":"==t?C(rt):void 0;var n}function nt(t){return"variable"!=t?C(rt):(k.marked="property",O(jt))}function rt(t){return":"==t?O(B):"("==t?C(jt):void 0}function it(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==e||r==e?C():C(t)}),r)}return i==e||o==e?O():n&&n.indexOf(";")>-1?C(t):O(R(e))}return function(n,i){return n==e||i==e?O():C(t,r)}}function ot(t,e,n){for(var r=3;r"),ft):void 0}function dt(t){if("=>"==t)return O(ft)}function pt(t,e){return"variable"==t||"keyword"==k.style?(k.marked="property",O(pt)):"?"==e||"number"==t||"string"==t?O(pt):":"==t?O(ft):"["==t?O(R("variable"),lt,R("]"),pt):"("==t?C(Tt,pt):void 0}function ht(t,e){return"variable"==t&&k.stream.match(/^\s*[?:]/,!1)||"?"==e?O(ht):":"==t?O(ft):"spread"==t?O(ht):C(ft)}function mt(t,e){return"<"==e?O($(">"),it(ft,">"),q,mt):"|"==e||"."==t||"&"==e?O(ft):"["==t?O(ft,R("]"),mt):"extends"==e||"implements"==e?(k.marked="keyword",O(ft)):"?"==e?O(ft,R(":"),ft):void 0}function vt(t,e){if("<"==e)return O($(">"),it(ft,">"),q,mt)}function yt(){return C(ft,gt)}function gt(t,e){if("="==e)return O(ft)}function bt(t,e){return"enum"==e?(k.marked="keyword",O(Wt)):C(_t,st,kt,Ct)}function _t(t,e){return c&&S(e)?(k.marked="keyword",O(_t)):"variable"==t?(A(e),O()):"spread"==t?O(_t):"["==t?ot(xt,"]"):"{"==t?ot(wt,"}"):void 0}function wt(t,e){return"variable"!=t||k.stream.match(/^\s*:/,!1)?("variable"==t&&(k.marked="property"),"spread"==t?O(_t):"}"==t?C():"["==t?O(D,R("]"),R(":"),wt):O(R(":"),_t,kt)):(A(e),O(kt))}function xt(){return C(_t,kt)}function kt(t,e){if("="==e)return O(B)}function Ct(t){if(","==t)return O(bt)}function Ot(t,e){if("keyword b"==t&&"else"==e)return O($("form","else"),I,q)}function Et(t,e){return"await"==e?O(Et):"("==t?O($(")"),At,q):void 0}function At(t){return"var"==t?O(bt,St):"variable"==t?O(St):C(St)}function St(t,e){return")"==t?O():";"==t?O(St):"in"==e||"of"==e?(k.marked="keyword",O(D,St)):C(D,St)}function jt(t,e){return"*"==e?(k.marked="keyword",O(jt)):"variable"==t?(A(e),O(jt)):"("==t?O(P,$(")"),it(Pt,")"),q,ct,I,M):c&&"<"==e?O($(">"),it(yt,">"),q,jt):void 0}function Tt(t,e){return"*"==e?(k.marked="keyword",O(Tt)):"variable"==t?(A(e),O(Tt)):"("==t?O(P,$(")"),it(Pt,")"),q,ct,M):c&&"<"==e?O($(">"),it(yt,">"),q,Tt):void 0}function Nt(t,e){return"keyword"==t||"variable"==t?(k.marked="type",O(Nt)):"<"==e?O($(">"),it(yt,">"),q):void 0}function Pt(t,e){return"@"==e&&O(D,Pt),"spread"==t?O(Pt):c&&S(e)?(k.marked="keyword",O(Pt)):c&&"this"==t?O(st,kt):C(_t,st,kt)}function Lt(t,e){return"variable"==t?Mt(t,e):$t(t,e)}function Mt(t,e){if("variable"==t)return A(e),O($t)}function $t(t,e){return"<"==e?O($(">"),it(yt,">"),q,$t):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(k.marked="keyword"),O(c?ft:D,$t)):"{"==t?O($("}"),qt,q):void 0}function qt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&S(e))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(qt)):"variable"==t||"keyword"==k.style?(k.marked="property",O(c?Rt:jt,qt)):"number"==t||"string"==t?O(c?Rt:jt,qt):"["==t?O(D,st,R("]"),c?Rt:jt,qt):"*"==e?(k.marked="keyword",O(qt)):c&&"("==t?C(Tt,qt):";"==t||","==t?O(qt):"}"==t?O():"@"==e?O(D,qt):void 0}function Rt(t,e){if("?"==e)return O(Rt);if(":"==t)return O(ft,kt);if("="==e)return O(B);var n=k.state.lexical.prev;return C(n&&"interface"==n.info?Tt:jt)}function It(t,e){return"*"==e?(k.marked="keyword",O(Ht,R(";"))):"default"==e?(k.marked="keyword",O(D,R(";"))):"{"==t?O(it(Ft,"}"),Ht,R(";")):C(I)}function Ft(t,e){return"as"==e?(k.marked="keyword",O(R("variable"))):"variable"==t?C(B,Ft):void 0}function Dt(t){return"string"==t?O():"("==t?C(D):C(Bt,zt,Ht)}function Bt(t,e){return"{"==t?ot(Bt,"}"):("variable"==t&&A(e),"*"==e&&(k.marked="keyword"),O(Ut))}function zt(t){if(","==t)return O(Bt,zt)}function Ut(t,e){if("as"==e)return k.marked="keyword",O(Bt)}function Ht(t,e){if("from"==e)return k.marked="keyword",O(D)}function Kt(t){return"]"==t?O():C(it(B,"]"))}function Wt(){return C($("form"),_t,R("{"),$("}"),it(Vt,"}"),q,q)}function Vt(){return C(_t,kt)}function Gt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return M.lex=!0,q.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new w((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new j(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=v&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(t,e,n,r,i){var o=t.cc;for(k.state=t,k.stream=i,k.marked=null,k.cc=o,k.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():l?D:I)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&x(t,r)?"variable-2":e}}(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==v)return t.Pass;if(e.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==q)l=l.prev;else if(u!=Ot)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==K||i==W)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return"vardef"==f?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Gt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=D&&e!=B||t.cc.pop()}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+qE3":function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var i,o,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return t}function f(){for(var t=[],e=0;e0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(void 0===l)return!1;if("function"==typeof l)o(l,this,e);else{var c=l.length,u=m(l,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"/9aa":function(t,e,n){var r=n("NykK"),i=n("ExA7"),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},"/N4U":function(t,e,n){var r=n("FboG");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"/pct":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.notification .notification_item a {\n color: inherit;\n text-decoration: underline;\n font-weight: inherit;\n}\n",""])},0:function(t,e,n){n("rLg/"),n("idvO"),n("3fDm"),t.exports=n("umi4")},"0XuU":function(t,e,n){t.exports=n("43KI").Transform},1:function(t,e){},"1IWx":function(t,e,n){t.exports=i;var r=n("+qE3").EventEmitter;function i(){r.call(this)}n("P7XM")(i,r),i.Readable=n("43KI"),i.Writable=n("LGOv"),i.Duplex=n("CWBI"),i.Transform=n("0XuU"),i.PassThrough=n("wq4j"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,t.end())}function l(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",c),t.on("error",c),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},"1eCo":function(t,e,n){!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function f(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=f;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=f,e.state=y,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=d;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=f;break}n.next()}return t}}function h(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function v(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;m(t)}}function y(t,e,n){return"openTag"==t?(n.tagStart=e.column(),g):"closeTag"==t?b:y}function g(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",x):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",x(t,0,n)):(a="error",g)}function b(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",w)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",_(t,0,n)):(a="error",w)}function _(t,e,n){return"endTag"!=t?(a="error",_):(m(n),y)}function w(t,e,n){return a="error",_(t,0,n)}function x(t,e,n){if("word"==t)return a="attribute",k;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new h(n,r,i==n.indented)),y}return a="error",x}function k(t,e,n){return"equals"==t?C:(l.allowMissing||(a="error"),x(t,0,n))}function C(t,e,n){return"string"==t?O:"word"==t&&l.allowUnquoted?(a="string",x):(a="error",x(t,0,n))}function O(t,e,n){return"string"==t?O:x(t,0,n)}return f.isInText=!0,{startState:function(t){var e={tokenize:f,state:y,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(a=null,e.state=e.state(o||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=x)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("VrN/"))},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"1p+/":function(t,e,n){!function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(t,e){var r=t.match(function(t){var e=n[t];return e||(n[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(t,e){return new RegExp((e?"^":"")+"","i")}function o(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}t.defineMode("htmlmixed",(function(n,a){var s=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag}),l={},c=a&&a.tags,u=a&&a.scriptTypes;if(o(e,l),c&&o(c,l),u)for(var f=u.length-1;f>=0;f--)l.script.unshift(["type",u[f].matches,u[f].mode]);function d(e,o){var a,c=s.token(e,o.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(e.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&u&&/>$/.test(e.current())){var f=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==e.current()&&function(t,e){for(var n=0;n-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}(t,v,e.localMode.token(t,e.localState))},o.localMode=h,o.localState=t.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=e.current(),e.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(s,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,r){return!e.localMode||/^\s*<\//.test(n)?s.indent(e.htmlState,n,r):e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||s}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}(n("VrN/"),n("1eCo"),n("+dQi"),n("ewDg"))},2:function(t,e){},"2Tiy":function(t,e,n){var r=n("tjlA").Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i-1?r:o.nextTick;g.WritableState=y;var c=n("Onz0");c.inherits=n("P7XM");var u={deprecate:n("t9FE")},f=n("QpuX"),d=n("hwdV").Buffer,p=i.Uint8Array||function(){};var h,m=n("RoFp");function v(){}function y(t,e){s=s||n("sZro"),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(C,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),C(t,e))}(t,n,r,e,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?l(_,t,n,a,i):_(t,n,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(t){if(s=s||n("sZro"),!(h.call(g,this)||this instanceof s))return new g(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),C(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,u,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var n=x(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===g&&(t&&t._writableState instanceof y)}})):h=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,C(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n("8oxB"),n("URgk").setImmediate,n("yLpj"))},"3fDm":function(t,e){},"42iF":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\nlabel[data-v-15d4eb78] {\n cursor: pointer;\n margin-bottom: 0;\n}\n",""])},"43KI":function(t,e,n){(e=t.exports=n("rXFu")).Stream=e,e.Readable=e,e.Writable=n("3BRs"),e.Duplex=n("sZro"),e.Transform=n("J78i"),e.PassThrough=n("eA/Y")},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},"8E+E":function(t,e,n){var r=n("Gob7");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"8oxB":function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var t=s(d);u=!0;for(var e=c.length;e;){for(l=c,c=[];++f1)for(var n=1;n=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(s=u[c],!b(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function _(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function x(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&y(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&w(i,n)||s)&&y(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}d.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return m(v(t.actual),128)+" "+t.operator+" "+m(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=h(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(t,e,n){t!=e&&y(t,e,n,"==",d.equal)},d.notEqual=function(t,e,n){t==e&&y(t,e,n,"!=",d.notEqual)},d.deepEqual=function(t,e,n){b(t,e,!1)||y(t,e,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(t,e,n){b(t,e,!0)||y(t,e,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(t,e,n){b(t,e,!1)&&y(t,e,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&y(e,n,r,"notDeepStrictEqual",t)},d.strictEqual=function(t,e,n){t!==e&&y(t,e,n,"===",d.strictEqual)},d.notStrictEqual=function(t,e,n){t===e&&y(t,e,n,"!==",d.notStrictEqual)},d.throws=function(t,e,n){x(!0,t,e,n)},d.doesNotThrow=function(t,e,n){x(!1,t,e,n)},d.ifError=function(t){if(t)throw t},d.strict=r((function t(e,n){e||y(e,!0,n,"==",t)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var k=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n("yLpj"))},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},A8dI:function(t,e,n){var r=n("IaA+");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},AP2z:function(t,e,n){var r=n("nmnc"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},"B/RK":function(t,e,n){"use strict";var r=n("vn/o"),i=4,o=0,a=1,s=2;function l(t){for(var e=t.length;--e>=0;)t[e]=0}var c=0,u=1,f=2,d=29,p=256,h=p+1+d,m=30,v=19,y=2*h+1,g=15,b=16,_=7,w=256,x=16,k=17,C=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(h+2));l(j);var T=new Array(2*m);l(T);var N=new Array(512);l(N);var P=new Array(256);l(P);var L=new Array(d);l(L);var M,$,q,R=new Array(m);function I(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function D(t){return t<256?N[t]:N[256+(t>>>7)]}function B(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function z(t,e,n){t.bi_valid>b-n?(t.bi_buf|=e<>b-t.bi_valid,t.bi_valid+=n-b):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function K(t,e,n){var r,i,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(o[s]++,s))}}function W(t){var e;for(e=0;e8?B(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function G(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)Z(t,o,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;nh&&(o=h,m++),l[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,m-=2}while(m>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),K(o,c,t.bl_count)}function J(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),l=t.opt_len+3+7>>>3,(c=t.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==e?et(t,e,n,r):t.strategy===i||c===l?(z(t,(u<<1)+(r?1:0),3),Y(t,j,T)):(z(t,(f<<1)+(r?1:0),3),function(t,e,n,r){var i;for(z(t,e-257,5),z(t,n-1,5),z(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(P[n]+p+1)]++,t.dyn_dtree[2*D(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){z(t,u<<1,3),U(t,w,j),function(t){16===t.bi_valid?(B(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},B3Eq:function(t,e,n){var r=n("dla9");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},BBYT:function(t,e,n){"use strict";var r=n("VYsd");n.n(r).a},BEtg:function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},C2zF:function(t,e,n){!function(t){"use strict";function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(t){return t.state.search||(t.state.search=new e)}function r(t){return"string"==typeof t&&t==t.toLowerCase()}function i(t,e,n){return t.getSearchCursor(e,n,{caseFold:r(e),multiline:!0})}function o(t,e,n,r,i){t.openDialog?t.openDialog(e,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function s(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=a(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function l(t,e,n){e.queryText=n,e.query=s(n),t.removeOverlay(e.overlay,r(e.query)),e.overlay=function(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}(e.query,r(e.query)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,r(e.query)))}function c(e,r,i,a){var s=n(e);if(s.query)return u(e,r);var c=e.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&e.openDialog){var p=null,h=function(n,r){t.e_stop(r),n&&(n!=s.queryText&&(l(e,s,n),s.posFrom=s.posTo=e.getCursor()),p&&(p.style.opacity=1),u(e,r.shiftKey,(function(t,n){var r;n.line<3&&document.querySelector&&(r=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((p=r).style.opacity=.4)})))};!function(t,e,n,r,i){t.openDialog(e,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(t)},onKeyDown:i})}(e,d(e),c,h,(function(r,i){var o=t.keyName(r),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(r),l(e,n(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(r),h(i,r))})),a&&c&&(l(e,s,c),u(e,r))}else o(e,d(e),"Search for:",c,(function(t){t&&!s.query&&e.operation((function(){l(e,s,t),s.posFrom=s.posTo=e.getCursor(),u(e,r)}))}))}function u(e,r,o){e.operation((function(){var a=n(e),s=i(e,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(e,a.query,r?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0))).find(r))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(t){t.operation((function(){var e=n(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function d(t){return''+t.phrase("Search:")+' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function p(t,e,n){t.operation((function(){for(var r=i(t,e);r.findNext();)if("string"!=typeof e){var o=t.getRange(r.from(),r.to()).match(e);r.replace(n.replace(/\$(\d)/g,(function(t,e){return o[e]})))}else r.replace(n)}))}function h(t,e){if(!t.getOption("readOnly")){var r=t.getSelection()||n(t).lastQuery,l=''+(e?t.phrase("Replace all:"):t.phrase("Replace:"))+"";o(t,l+function(t){return' '+t.phrase("(Use /re/ syntax for regexp search)")+""}(t),l,r,(function(n){n&&(n=s(n),o(t,function(t){return''+t.phrase("With:")+' '}(t),t.phrase("Replace with:"),"",(function(r){if(r=a(r),e)p(t,n,r);else{f(t);var o=i(t,n,t.getCursor("from")),s=function(){var e,a=o.from();!(e=o.findNext())&&(o=i(t,n),!(e=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(t.setSelection(o.from(),o.to()),t.scrollIntoView({from:o.from(),to:o.to()}),function(t,e,n,r){t.openConfirm?t.openConfirm(e,r):confirm(n)&&r[0]()}(t,function(t){return''+t.phrase("Replace?")+" "}(t),t.phrase("Replace?"),[function(){l(e)},s,function(){p(t,n,r)}]))},l=function(t){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(e,n){return t[n]}))),s()};s()}})))}))}}t.commands.find=function(t){f(t),c(t)},t.commands.findPersistent=function(t){f(t),c(t,!1,!0)},t.commands.findPersistentNext=function(t){c(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){c(t,!0,!0,!0)},t.commands.findNext=c,t.commands.findPrev=function(t){c(t,!0)},t.commands.clearSearch=f,t.commands.replace=h,t.commands.replaceAll=function(t){h(t,!0)}}(n("VrN/"),n("uTOq"),n("Ku0u"))},C3Lh:function(t,e,n){"use strict";var r=n("U/kh");n.n(r).a},CWBI:function(t,e,n){t.exports=n("sZro")},CxY0:function(t,e,n){"use strict";var r=n("GYWy"),i=n("Nehr");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){i.isString(t)&&(t=b(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n("s4NR");function b(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?L+="x":L+=P[M];if(!L.match(p)){var q=T.slice(0,A),R=T.slice(A+1),I=P.match(h);I&&(q.push(I[1]),R.unshift(I[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+F,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(A=0,N=u.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=k.slice(-1)[0],E=(n.host||t.host||k.length>1)&&("."===O||".."===O)||""===O,A=0,S=k.length;S>=0;S--)"."===(O=k[S])?k.splice(S,1):".."===O?(k.splice(S,1),A++):A&&(k.splice(S,1),A--);if(!w&&!x)for(;A--;A)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var j,T=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=T?"":k.length?k.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(w=w||n.host&&k.length)&&!T&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},Cyu2:function(t,e,n){"use strict";var r=n("umAq");n.n(r).a},D7zT:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".table-responsive .table tfoot td,\n.table-responsive .table tfoot th {\n border-top: 2px solid #dee2e6;\n}",""])},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},FboG:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"select.form-control[multiple][data-v-eb1ad1ee] {\n height: 159px;\n}\noption[data-v-eb1ad1ee]:disabled {\n text-decoration: line-through;\n}",""])},GYWy:function(t,e,n){(function(t,r){var i;!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,f=26,d=38,p=700,h=72,m=128,v="-",y=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,x=Math.floor,k=String.fromCharCode;function C(t){throw new RangeError(_[t])}function O(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function E(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+O((t=t.replace(b,".")).split("."),e).join(".")}function A(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=k((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=k(t)})).join("")}function j(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function T(t,e,n){var r=0;for(t=n?x(t/p):t>>1,t+=x(t/e);t>w*f>>1;r+=c)t=x(t/w);return x(r+(w+1)*t/(t+d))}function N(t){var e,n,r,i,o,a,s,d,p,y,g,b=[],_=t.length,w=0,k=m,O=h;for((n=t.lastIndexOf(v))<0&&(n=0),r=0;r=128&&C("not-basic"),b.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=w,a=1,s=c;i>=_&&C("invalid-input"),((d=(g=t.charCodeAt(i++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||d>x((l-w)/a))&&C("overflow"),w+=d*a,!(d<(p=s<=O?u:s>=O+f?f:s-O));s+=c)a>x(l/(y=c-p))&&C("overflow"),a*=y;O=T(w-o,e=b.length+1,0==o),x(w/e)>l-k&&C("overflow"),k+=x(w/e),w%=e,b.splice(w++,0,k)}return S(b)}function P(t){var e,n,r,i,o,a,s,d,p,y,g,b,_,w,O,E=[];for(b=(t=A(t)).length,e=m,n=0,o=h,a=0;a=e&&gx((l-n)/(_=r+1))&&C("overflow"),n+=(s-e)*_,e=s,a=0;al&&C("overflow"),g==e){for(d=n,p=c;!(d<(y=p<=o?u:p>=o+f?f:p-o));p+=c)O=d-y,w=c-y,E.push(k(j(y+O%w,0))),d=x(O/w);E.push(k(j(d,0))),o=T(n,_,r==i),n=0,++r}++n,++e}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:S},decode:N,encode:P,toASCII:function(t){return E(t,(function(t){return g.test(t)?"xn--"+P(t):t}))},toUnicode:function(t){return E(t,(function(t){return y.test(t)?N(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n("YuTi")(t),n("yLpj"))},Gob7:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*.form-control {\n border: none;\n}\n.ql-editor {\n border: none!important;\n}\nbody {\n background: none;\n}*/\n",""])},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},Hc2a:function(t,e,n){try{n("w3dh")}catch(t){console.error(t.message)}},HmDM:function(t,e,n){"use strict";var r=n("zjyH");n.n(r).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,k=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,E=w((function(t){return t.replace(O,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function j(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,J=Z&&Z.indexOf("edge/")>0,Q=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===G),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===U&&(U=!W&&!V&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),U},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,lt="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=N,ut=0,ft=function(){this.id=ut++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(t)){var l=Bt(String,i.type);(l<0||s0&&(ue((l=t(l,(n||"")+"_"+r))[0])&&ue(u)&&(f[c]=gt(u.text+l[0].text),l.shift()),f.push.apply(f,l)):s(l)?ue(u)?f[c]=gt(u.text+l):""!==l&&f.push(gt(l)):ue(l)&&ue(u)?f[c]=gt(u.text+l.text):(a(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),f.push(l)));return f}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=me(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=ve(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function me(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ce(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function ye(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(un=function(){return fn.now()})}function dn(){var t,e;for(cn=un(),sn=!0,nn.sort((function(t,e){return t.id-e.id})),ln=0;lnln&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(dn))}}(this)},hn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){zt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:N,set:N};function vn(t,e,n){mn.get=function(){return this[e][n]},mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,mn)}var yn={lazy:!0};function gn(t,e,n){var r=!it();"function"==typeof n?(mn.get=r?bn(e):_n(n),mn.set=N):(mn.get=n.get?r&&!1!==n.cache?bn(e):_n(n.get):N,mn.set=n.set||N),Object.defineProperty(t,e,mn)}function bn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function _n(t){return function(){return t.call(this,this)}}function wn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var xn=0;function kn(t){var e=t.options;if(t.super){var n=kn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&j(t.extendOptions,r),(e=t.options=qt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Cn(t){this._init(t)}function On(t){return t&&(t.Ctor.options.name||t.tag)}function En(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===c.call(n)&&t.test(e));var n}function An(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=On(a.componentOptions);s&&!e(s)&&Sn(n,o,r,i)}}}function Sn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=qt(kn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;At(t,"$attrs",o&&o.attrs||r,null,!0),At(t,"$listeners",e._parentListeners||r,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),Ct(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){i.push(o);var a=It(o,e,n,t);At(r,o,a),o in t||vn(t,"_props",o)};for(var a in e)o(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?N:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return zt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];i&&_(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&vn(t,"_data",a))}Et(e,!0)}(t):Et(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new hn(t,a||N,N,yn)),i in t||gn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?S(e):e;for(var n=S(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return D}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:j,mergeOptions:qt,defineReactive:At},t.set=St,t.delete=jt,t.nextTick=ee,t.observable=function(t){return Et(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,j(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=qt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=qt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)vn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)gn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,I.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=j({},a.options),i[r]=a,a}}(t),function(t){I.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:it}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Pe}),Cn.version="2.6.10";var Nn=m("style,class"),Pn=m("input,textarea,option,select,progress"),Ln=function(t,e,n){return"value"===n&&Pn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Mn=m("contenteditable,draggable,spellcheck"),$n=m("events,caret,typing,plaintext-only"),qn=function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&$n(e)?e:"true"},Rn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Dn=function(t){return Fn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function zn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Hn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?mr(t,e,n):Rn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Mn(e)?t.setAttribute(e,qn(e,n)):Fn(e)?Bn(n)?t.removeAttributeNS(In,Dn(e)):t.setAttributeNS(In,e,n):mr(t,e,n)}function mr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(Y&&!X&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var vr={create:pr,update:pr};function yr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=zn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=zn(e,n.data));return function(t,e){return o(t)||o(e)?Un(t,Hn(e)):""}(e.staticClass,e.class)}(e),l=n._transitionClasses;o(l)&&(s=Un(s,Hn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,br,_r,wr,xr,kr,Cr={create:yr,update:yr},Or=/[\w).+\-_$\]]/;function Er(t){var e,n,r,i,o,a=!1,s=!1,l=!1,c=!1,u=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(m=t.charAt(h));h--);m&&Or.test(m)||(c=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&v(),o)for(r=0;r-1?{exp:t.slice(0,wr),key:'"'+t.slice(wr+1)+'"'}:{exp:t,key:null};for(br=t,wr=xr=kr=0;!Ur();)Hr(_r=zr())?Wr(_r):91===_r&&Kr(_r);return{exp:t.slice(0,xr),key:t.slice(xr+1,kr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function zr(){return br.charCodeAt(++wr)}function Ur(){return wr>=gr}function Hr(t){return 34===t||39===t}function Kr(t){var e=1;for(xr=wr;!Ur();)if(Hr(t=zr()))Wr(t);else if(91===t&&e++,93===t&&e--,0===e){kr=wr;break}}function Wr(t){for(var e=t;!Ur()&&(t=zr())!==e;);}var Vr,Gr="__r",Zr="__c";function Yr(t,e,n){var r=Vr;return function i(){null!==e.apply(null,arguments)&&Qr(t,i,n,r)}}var Xr=Vt&&!(tt&&Number(tt[1])<=53);function Jr(t,e,n,r){if(Xr){var i=cn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Vr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Qr(t,e,n,r){(r||Vr).removeEventListener(t,e._wrapper||e,n)}function ti(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Vr=e.elm,function(t){if(o(t[Gr])){var e=Y?"change":"input";t[e]=[].concat(t[Gr],t[e]||[]),delete t[Gr]}o(t[Zr])&&(t.change=[].concat(t[Zr],t.change||[]),delete t[Zr])}(n),ae(n,r,Jr,Qr,Yr,e.context),Vr=void 0}}var ei,ni={create:ti,update:ti};function ri(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=j({},l)),s)n in l||(a[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var c=i(r)?"":String(r);ii(a,c)&&(a.value=c)}else if("innerHTML"===n&&Vn(a.tagName)&&i(a.innerHTML)){(ei=ei||document.createElement("div")).innerHTML=""+r+"";for(var u=ei.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var oi={create:ri,update:ri},ai=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function si(t){var e=li(t.style);return t.staticStyle?j(t.staticStyle,e):e}function li(t){return Array.isArray(t)?T(t):"string"==typeof t?ai(t):t}var ci,ui=/^--/,fi=/\s*!important$/,di=function(t,e,n){if(ui.test(e))t.style.setProperty(e,n);else if(fi.test(n))t.style.setProperty(E(e),n.replace(fi,""),"important");else{var r=hi(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(yi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function bi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(yi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function _i(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&j(e,wi(t.name||"v")),j(e,t),e}return"string"==typeof t?wi(t):void 0}}var wi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),xi=W&&!X,ki="transition",Ci="animation",Oi="transition",Ei="transitionend",Ai="animation",Si="animationend";xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oi="WebkitTransition",Ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ai="WebkitAnimation",Si="webkitAnimationEnd"));var ji=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ti(t){ji((function(){ji(t)}))}function Ni(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),gi(t,e))}function Pi(t,e){t._transitionClasses&&g(t._transitionClasses,e),bi(t,e)}function Li(t,e,n){var r=$i(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ki?Ei:Si,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=ki,u=a,f=o.length):e===Ci?c>0&&(n=Ci,u=c,f=l.length):f=(n=(u=Math.max(a,c))>0?a>c?ki:Ci:null)?n===ki?o.length:l.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===ki&&Mi.test(r[Oi+"Property"])}}function qi(t,e){for(;t.length1}function zi(t,e){!0!==e.data.show&&Ii(e)}var Ui=function(t){var e,n,r={},l=t.modules,c=t.nodeOps;for(e=0;eh?b(t,i(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&w(0,e,d,h)}(d,m,y,n,u):o(y)?(o(t.text)&&c.setTextContent(d,""),b(d,null,y,0,y.length-1,n)):o(m)?w(0,m,0,m.length-1):o(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}}}function O(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(M(Gi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Vi(t,e){return e.every((function(e){return!M(e,t)}))}function Gi(t){return"_value"in t?t._value:t.value}function Zi(t){t.target.composing=!0}function Yi(t){t.target.composing&&(t.target.composing=!1,Xi(t.target,"input"))}function Xi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ji(t){return!t.componentInstance||t.data&&t.data.transition?t:Ji(t.componentInstance._vnode)}var Qi={model:Hi,show:{bind:function(t,e,n){var r=e.value,i=(n=Ji(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ii(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Ji(n)).data&&n.data.transition?(n.data.show=!0,r?Ii(n,(function(){t.style.display=t.__vOriginalDisplay})):Fi(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},to={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function eo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?eo(We(e.children)):t}function no(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[k(o)]=i[o];return e}function ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var io=function(t){return t.tag||Ke(t)},oo=function(t){return"show"===t.name},ao={name:"transition",props:to,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=eo(i);if(!o)return i;if(this._leaving)return ro(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=no(this),c=this._vnode,u=eo(c);if(o.data.directives&&o.data.directives.some(oo)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!Ke(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=j({},l);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ro(t,i);if("in-out"===r){if(Ke(o))return c;var d,p=function(){d()};se(l,"afterEnter",p),se(l,"enterCancelled",p),se(f,"delayLeave",(function(t){d=t}))}}return i}}},so=j({tag:String,moveClass:String},to);function lo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function co(t){t.data.newPos=t.elm.getBoundingClientRect()}function uo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Yn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Yn[t]=/HTMLUnknownElement/.test(e.toString())},j(Cn.options.directives,Qi),j(Cn.options.components,fo),Cn.prototype.__patch__=W?Ui:N,Cn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),en(t,"beforeMount"),r=function(){t._update(t._render(),n)},new hn(t,r,N,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&W?Jn(t):void 0,e)},W&&setTimeout((function(){D.devtools&&ot&&ot.emit("init",Cn)}),0);var po,ho=/\{\{((?:.|\r?\n)+?)\}\}/g,mo=/[-.*+?^${}()|[\]\/\\]/g,vo=w((function(t){var e=t[0].replace(mo,"\\$&"),n=t[1].replace(mo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),yo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Rr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=qr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},go={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Rr(t,"style");n&&(t.staticStyle=JSON.stringify(ai(n)));var r=qr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},bo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_o=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),xo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+B.source+"]*",Oo="((?:"+Co+"\\:)?"+Co+")",Eo=new RegExp("^<"+Oo),Ao=/^\s*(\/?)>/,So=new RegExp("^<\\/"+Oo+"[^>]*>"),jo=/^]+>/i,To=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},$o=/&(?:lt|gt|quot|amp|#39);/g,qo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ro=m("pre,textarea",!0),Io=function(t,e){return t&&Ro(t)&&"\n"===e[0]};function Fo(t,e){var n=e?qo:$o;return t.replace(n,(function(t){return Mo[t]}))}var Do,Bo,zo,Uo,Ho,Ko,Wo,Vo,Go=/^@|^v-on:/,Zo=/^v-|^@|^:/,Yo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Xo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jo=/^\(|\)$/g,Qo=/^\[.*\]$/,ta=/:(.*)$/,ea=/^:|^\.|^v-bind:/,na=/\.[^.\]]+(?=[^\]]*$)/g,ra=/^v-slot(:|$)|^#/,ia=/[\r\n]/,oa=/\s+/g,aa=w((function(t){return(po=po||document.createElement("div")).innerHTML=t,po.textContent})),sa="_empty_";function la(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ha(e),rawAttrsMap:{},parent:n,children:[]}}function ca(t,e){var n,r;(r=qr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=qr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Rr(t,"scope"),t.slotScope=e||Rr(t,"slot-scope")):(e=Rr(t,"slot-scope"))&&(t.slotScope=e);var n=qr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Nr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Ir(t,ra);if(r){var i=da(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||sa}}else{var s=Ir(t,ra);if(s){var l=t.scopedSlots||(t.scopedSlots={}),c=da(s),u=c.name,f=c.dynamic,d=l[u]=la("template",[],t);d.slotTarget=u,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||sa,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=qr(t,"name"))}(t),function(t){var e;(e=qr(t,"is"))&&(t.component=e),null!=Rr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),$r(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=qr(t,"value")||"null";Tr(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),$r(t,"change",Br(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?Gr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Br(e,u);l&&(f="if($event.target.composing)return;"+f),Tr(t,"value","("+e+")"),$r(t,c,f,null,!0),(s||a)&&$r(t,"blur","$forceUpdate()")}(t,r,i);else if(!D.isReservedTag(o))return Dr(t,r,i),!1;return!0},text:function(t,e){e.value&&Tr(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Tr(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:bo,mustUseProp:Ln,canBeLeftOpenTag:_o,isReservedTag:Gn,getTagNamespace:Zn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(_a)},xa=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var ka=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/,Ca=/\([^)]*?\);*$/,Oa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Aa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(t){return"if("+t+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ta(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=Na(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Na(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Na(t)})).join(",")+"]";var e=Oa.test(t.value),n=ka.test(t.value),r=Oa.test(t.value.replace(Ca,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(ja[s])o+=ja[s],Ea[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Pa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function Pa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Ea[t],r=Aa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var La={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:N},Ma=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=jr(t.modules,"transformCode"),this.dataGenFns=jr(t.modules,"genData"),this.directives=j(j({},La),t.directives);var e=t.isReservedTag||P;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function $a(t,e){var n=new Ma(e);return{render:"with(this){return "+(t?qa(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function qa(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ra(t,e);if(t.once&&!t.onceProcessed)return Ia(t,e);if(t.for&&!t.forProcessed)return Da(t,e);if(t.if&&!t.ifProcessed)return Fa(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Ha(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?Va((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:k(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Ha(e,n,!0);return"_c("+t+","+Ba(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ba(t,e));var i=t.inlineTemplate?null:Ha(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=$a(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+Va(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function za(t){return 1===t.type&&("slot"===t.tag||t.children.some(za))}function Ua(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fa(t,e,Ua,"null");if(t.for&&!t.forProcessed)return Da(t,e,Ua);var r=t.slotScope===sa?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Ha(t,e)||"undefined")+":undefined":Ha(t,e)||"undefined":qa(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ha(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||qa)(a,e)+s}var l=n?function(t,e){for(var n=0,r=0;r]*>)","i")),d=t.replace(f,(function(t,n,r){return c=r.length,Po(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Io(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-d.length,t=d,E(u,l-c,l)}else{var p=t.indexOf("<");if(0===p){if(To.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),l,l+h+3),k(h+3);continue}}if(No.test(t)){var m=t.indexOf("]>");if(m>=0){k(m+2);continue}}var v=t.match(jo);if(v){k(v[0].length);continue}var y=t.match(So);if(y){var g=l;k(y[0].length),E(y[1],g,l);continue}var b=C();if(b){O(b),Io(b.tagName,t)&&k(1);continue}}var _=void 0,w=void 0,x=void 0;if(p>=0){for(w=t.slice(p);!(So.test(w)||Eo.test(w)||To.test(w)||No.test(w)||(x=w.indexOf("<",1))<0);)p+=x,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&k(_.length),e.chars&&_&&e.chars(_,l-_.length,l)}if(t===n){e.chars&&e.chars(t);break}}function k(e){l+=e,t=t.substring(e)}function C(){var e=t.match(Eo);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(k(e[0].length);!(n=t.match(Ao))&&(r=t.match(ko)||t.match(xo));)r.start=l,k(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],k(n[0].length),i.end=l,i}}function O(t){var n=t.tagName,l=t.unarySlash;o&&("p"===r&&wo(n)&&E(r),s(n)&&r===n&&E(n));for(var c=a(n)||!!l,u=t.attrs.length,f=new Array(u),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)e.end&&e.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}E()}(t,{warn:Do,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,u,f){var d=r&&r.ns||Vo(t);Y&&"svg"===d&&(o=function(t){for(var e=[],n=0;nl&&(s.push(o=t.slice(l,i)),a.push(JSON.stringify(o)));var c=Er(r[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l':'
',Ja.innerHTML.indexOf(" ")>0}var ns=!!W&&es(!1),rs=!!W&&es(!0),is=w((function(t){var e=Jn(t);return e&&e.innerHTML})),os=Cn.prototype.$mount;Cn.prototype.$mount=function(t,e){if((t=t&&Jn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=ts(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,t,e)},Cn.compile=ts,t.exports=Cn}).call(this,n("yLpj"),n("URgk").setImmediate)},"IaA+":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'/**\n * Nestable\n */\n.dd {\n position: relative;\n display: block;\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: 13px;\n line-height: 20px;\n}\n.dd-list {\n display: block;\n position: relative;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.dd-list .dd-list {\n padding-left: 30px;\n}\n.dd-collapsed .dd-list {\n display: none;\n}\n.dd-empty,\n.dd-item,\n.dd-placeholder {\n display: block;\n position: relative;\n margin: 0;\n padding: 0;\n}\n.dd-handle {\n display: block;\n height: 32px;\n margin: 5px 0;\n padding: 5px 10px;\n color: #333;\n text-decoration: none;\n font-weight: bold;\n border: 1px solid #ccc;\n background: #fafafa;\n box-sizing: border-box;\n line-height: 22px;\n}\n.dd-item > button {\n display: block;\n position: relative;\n cursor: pointer;\n float: left;\n width: 25px;\n height: 20px;\n margin: 6px 0;\n padding: 0;\n text-indent: 100%;\n white-space: nowrap;\n overflow: hidden;\n border: 0;\n background: transparent;\n font-size: 18px;\n line-height: 1;\n text-align: center;\n font-weight: bold;\n}\n.dd-item > button:before {\n content: "+";\n display: block;\n position: absolute;\n width: 100%;\n text-align: center;\n text-indent: 0;\n}\n.dd-item > button[data-action=collapse]:before {\n content: "-";\n}\n.dd-empty,\n.dd-placeholder {\n margin: 5px 0;\n padding: 0;\n min-height: 30px;\n background: #f2fbff;\n border: 1px dashed #b6bcbf;\n box-sizing: border-box;\n}\n.dd-empty {\n border: 1px dashed #bbb;\n min-height: 100px;\n background-color: #e5e5e5;\n background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);\n background-size: 60px 60px;\n background-position: 0 0, 30px 30px;\n}\n.dd-dragel {\n position: absolute;\n pointer-events: none;\n z-index: 9999;\n}\n.dd-dragel > .dd-item .dd-handle {\n margin-top: 0;\n}\n.dd-dragel .dd-handle {\n box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, 0.1);\n}\n\n/**\n * Nestable Extras\n */\n.nestable-lists {\n display: block;\n clear: both;\n padding: 30px 0;\n width: 100%;\n border: 0;\n border-top: 2px solid #ddd;\n border-bottom: 2px solid #ddd;\n}\n#nestable-menu {\n padding: 0;\n margin: 20px 0;\n}\n.nestable-dark-theme .dd-handle {\n color: #fff;\n border: 1px solid #999;\n background: #bbb;\n}\n.nestable-dark-theme .dd-item > button:before {\n color: #fff;\n}\n@media only screen and (min-width: 700px) {\n.dd {\n /*float: left;*/\n width: 100%;\n}\n.dd + .dd {\n margin-left: 2%;\n}\n}\n.dd-hover > .dd-handle {\n background: #2ea8e5 !important;\n}\n\n/**\n * Nestable Draggable Handles\n */\n.dd3-content {\n display: block;\n margin: 7px 0;\n padding: 5px 10px 5px 40px;\n color: #333;\n text-decoration: none;\n border: 1px solid #ccc;\n background: #f0f0f0;\n box-sizing: border-box;\n cursor: default;\n}\n.dd-dragel > .dd3-item > .dd3-content {\n margin: 0;\n}\n.dd3-item > button {\n margin-left: 36px;\n}\n.dd3-handle {\n position: absolute;\n margin: 0;\n left: 0;\n top: 0;\n cursor: move !important;\n width: 36px;\n white-space: nowrap;\n}\n.dd3-content .btn {\n padding-top: 0;\n padding-bottom: 0;\n}',""])},J78i:function(t,e,n){"use strict";t.exports=a;var r=n("sZro"),i=n("Onz0");function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length\n \n'},KK1u:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".image__uploader[data-v-abb1b27c] {\n display: block;\n margin-bottom: 1.25rem;\n min-height: 40px;\n}\n.image__uploader__input[data-v-abb1b27c] {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n.image__uploader__states[data-v-abb1b27c] {\n cursor: pointer;\n color: #e1e1e1;\n min-height: 159px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px dashed;\n}",""])},KKCa:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},KNC7:function(t,e,n){"use strict";var r=n("+OQi");n.n(r).a},KO5m:function(t,e,n){"use strict";var r=n("JDFr");n.n(r).a},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},Ku0u:function(t,e,n){!function(t){function e(e,n,r){var i,o=e.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),t.addClass(o,"dialog-opened"),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=e(this,r,o.bottom),s=!1,l=this;function c(e){if("string"==typeof e)f.value=e;else{if(s)return;s=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&t.on(f,"input",(function(t){o.onInput(t,f.value,c)})),o.onKeyUp&&t.on(f,"keyup",(function(t){o.onKeyUp(t,f.value,c)})),t.on(f,"keydown",(function(e){o&&o.onKeyDown&&o.onKeyDown(e,f.value,c)||((27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(f.blur(),t.e_stop(e),c()),13==e.keyCode&&i(f.value,e))})),!1!==o.closeOnBlur&&t.on(f,"blur",c)):(u=a.getElementsByTagName("button")[0])&&(t.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&t.on(u,"blur",c),u.focus()),c})),t.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=e(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var d=0;d-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;h(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function h(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=m(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e,i){var o,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,u)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,u)})),r.forEachChild((function(r,o){h(t,e,n.concat(o),r,i)}))}function m(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function v(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){0},c.prototype.commit=function(t,e,n){var r=this,i=v(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},c.prototype.dispatch=function(t,e){var n=this,r=v(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}return t}))}},c.prototype.subscribe=function(t){return f(t,this._subscribers)},c.prototype.subscribeAction=function(t){return f("function"==typeof t?{before:t}:t,this._actionSubscribers)},c.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),h(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),d(this)},c.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,u);var g=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),b=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),_=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function x(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var O={Store:c,install:y,version:"3.1.1",mapState:g,mapMutations:b,mapGetters:_,mapActions:w,createNamespacedHelpers:function(t){return{mapState:g.bind(null,t),mapGetters:_.bind(null,t),mapMutations:b.bind(null,t),mapActions:w.bind(null,t)}}};e.a=O}).call(this,n("yLpj"))},LGOv:function(t,e,n){t.exports=n("3BRs")},LOvY:function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},MCLT:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,t,r.depth)}function l(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&k(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=u(t,i,r)),i}var o=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(v(e))return t.stylize(""+e,"number");if(h(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var c,_="",C=!1,O=["{","}"];(p(n)&&(C=!0,O=["[","]"]),k(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),x(n)&&(_=" "+f(n)),0!==a.length||C&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=C?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,_,O)):O[0]+_+O[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),S(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=m(n)?u(t,l.value,null):u(t,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function g(t){return void 0===t}function b(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===C(t)}function x(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function k(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(g(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=h,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=b,e.isObject=_,e.isDate=w,e.isError=x,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o\w/,!1)&&(e.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!t.eol()&&(o||!1===i||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&t.match(r)){e.tokenize=null,e.tokStack.pop(),e.tokStack.pop();break}o="\\"==t.next()&&!o}return"string"}(r,i,t,e)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";t.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),t.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:e(i),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(o),builtin:e(a),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,e){var n;if(n=t.match(/<<\s*/)){var i=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var o=t.current().slice(n[0].length+(i?2:1));if(i&&t.eat(i),o)return(e.tokStack||(e.tokStack=[])).push(o,0),e.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,e){return(e.tokStack||(e.tokStack=[])).push('"',0),e.tokenize=r('"'),"string"},"{":function(t,e){return e.tokStack&&e.tokStack.length&&e.tokStack[e.tokStack.length-1]++,!1},"}":function(t,e){return e.tokStack&&e.tokStack.length>0&&!--e.tokStack[e.tokStack.length-1]&&(e.tokenize=r(e.tokStack[e.tokStack.length-2])),!1}}};t.defineMode("php",(function(e,n){var r=t.getMode(e,n&&n.htmlMode||"text/html"),i=t.getMode(e,s);return{startState:function(){var e=t.startState(r),o=n.startOpen?t.startState(i):null;return{html:e,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:e,pending:null}},copyState:function(e){var n,o=e.html,a=t.copyState(r,o),s=e.php,l=s&&t.copyState(i,s);return n=e.curMode==r?a:l,{html:a,php:l,curMode:e.curMode,curState:n,pending:e.pending}},token:function(e,n){var o=n.curMode==i;if(e.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&e.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(e,n.curState);if(e.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=t.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!e.eol()&&e.next()!=n.pending;);var a="string"}else n.pending&&e.pos/.test(l)?n.pending=s[0]:n.pending={end:e.pos,style:a},e.backUp(l.length-c)),a},indent:function(t,e,n){return t.curMode!=i&&/^\s*<\//.test(e)||t.curMode==i&&/^\?>/.test(e)?r.indent(t.html,e,n):t.curMode.indent(t.curState,e,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(t){return{state:t.curState,mode:t.curMode}}}}),"htmlmixed","clike"),t.defineMIME("application/x-httpd-php","php"),t.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),t.defineMIME("text/x-php",s)}(n("VrN/"),n("1p+/"),n("S6bl"))},RoFp:function(t,e,n){"use strict";var r=n("lm0R");function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},Rwuk:function(t,e,n){"use strict";(function(t){var r=n("tjlA").Buffer,i=n("1IWx").Transform,o=n("a3Xj"),a=n("MCLT"),s=n("9lTW").ok,l=n("tjlA").kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(o),f=0;f=l?a=new RangeError(c):e=r.concat(i,o),i=[],t.close(),n(a,e)}t.on("error",(function(e){t.removeListener("end",s),t.removeListener("readable",a),n(e)})),t.on("end",s),t.end(e),a()}function g(t,e){if("string"==typeof e&&(e=r.from(e)),!r.isBuffer(e))throw new TypeError("Not a string or buffer");var n=t._finishFlushFlag;return t._processChunk(e,n)}function b(t){if(!(this instanceof b))return new b(t);A.call(this,t,o.DEFLATE)}function _(t){if(!(this instanceof _))return new _(t);A.call(this,t,o.INFLATE)}function w(t){if(!(this instanceof w))return new w(t);A.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);A.call(this,t,o.GUNZIP)}function k(t){if(!(this instanceof k))return new k(t);A.call(this,t,o.DEFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);A.call(this,t,o.INFLATERAW)}function O(t){if(!(this instanceof O))return new O(t);A.call(this,t,o.UNZIP)}function E(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function A(t,n){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!E(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!E(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(t,n){S(s),s._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],s.emit("error",r)};var l=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(l=t.level);var c=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(c=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,l,t.memLevel||e.Z_DEFAULT_MEMLEVEL,c,t.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function S(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function j(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=b,e.Inflate=_,e.Gzip=w,e.Gunzip=x,e.DeflateRaw=k,e.InflateRaw=C,e.Unzip=O,e.createDeflate=function(t){return new b(t)},e.createInflate=function(t){return new _(t)},e.createDeflateRaw=function(t){return new k(t)},e.createInflateRaw=function(t){return new C(t)},e.createGzip=function(t){return new w(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new O(t)},e.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new b(e),t,n)},e.deflateSync=function(t,e){return g(new b(e),t)},e.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new w(e),t,n)},e.gzipSync=function(t,e){return g(new w(e),t)},e.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new k(e),t,n)},e.deflateRawSync=function(t,e){return g(new k(e),t)},e.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new O(e),t,n)},e.unzipSync=function(t,e){return g(new O(e),t)},e.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new _(e),t,n)},e.inflateSync=function(t,e){return g(new _(e),t)},e.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new x(e),t,n)},e.gunzipSync=function(t,e){return g(new x(e),t)},e.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new C(e),t,n)},e.inflateRawSync=function(t,e){return g(new C(e),t)},a.inherits(A,i),A.prototype.params=function(n,r,i){if(ne.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else t.nextTick(i)},A.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},A.prototype._flush=function(t){this._transform(r.alloc(0),"",t)},A.prototype.flush=function(e,n){var i=this,a=this._writableState;("function"==typeof e||void 0===e&&!n)&&(n=e,e=o.Z_FULL_FLUSH),a.ended?n&&t.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(e,n)})):(this._flushFlag=e,this.write(r.alloc(0),"",n))},A.prototype.close=function(e){S(this,e),t.nextTick(j,this)},A.prototype._transform=function(t,e,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||r.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},A.prototype._processChunk=function(t,e,n){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,u=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(t){d=t})),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw S(this),new RangeError(c);var v=r.concat(p,h);return S(this),v}s(this._handle,"zlib binding closed");var y=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!u._hadError){var d=o-c;if(s(d>=0,"have should not go down"),d>0){var m=u._buffer.slice(u._offset,u._offset+d);u._offset+=d,f?u.push(m):(p.push(m),h+=m.length)}if((0===c||u._offset>=u._chunkSize)&&(o=u._chunkSize,u._offset=0,u._buffer=r.allocUnsafe(u._chunkSize)),0===c){if(a+=i-l,i=l,!f)return!0;var v=u._handle.write(e,t,a,i,u._buffer,u._offset,u._chunkSize);return v.callback=g,void(v.buffer=t)}if(!f)return!1;n()}}y.buffer=t,y.callback=g},a.inherits(b,A),a.inherits(_,A),a.inherits(w,A),a.inherits(x,A),a.inherits(k,A),a.inherits(C,A),a.inherits(O,A)}).call(this,n("8oxB"))},S6bl:function(t,e,n){!function(t){"use strict";function e(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.info=r,this.align=i,this.prev=o}function n(t,n,r,i){var o=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=r&&(o=t.context.indented),t.context=new e(o,n,r,i,null,t.context)}function r(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}function i(t,e,n){return"variable"==e.prevToken||"type"==e.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,n))||!(!e.typeAtEndOfLine||t.column()!=t.indentation())||void 0}function o(t){for(;;){if(!t||"top"==t.type)return!0;if("}"==t.type&&"namespace"!=t.prev.info)return!1;t=t.prev}}function a(t){for(var e={},n=t.split(" "),r=0;r!?|\/]/,j=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=l.isReservedIdentifier||!1;function N(t,e){var n,r=t.next();if(_[r]){var i=_[r](t,e);if(!1!==i)return i}if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(e.tokenize=null),"string"}),e.tokenize(t,e);if(O.test(r))return c=r,null;if(E.test(r)){if(t.backUp(1),t.match(A))return"number";t.next()}if("/"==r){if(t.eat("*"))return e.tokenize=P,P(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(S.test(r)){for(;!t.match(/^\/[\/*]/,!1)&&t.eat(S););return"operator"}if(t.eatWhile(j),C)for(;t.match(C);)t.eatWhile(j);var o=t.current();return s(h,o)?(s(y,o)&&(c="newstatement"),s(g,o)&&(u=!0),"keyword"):s(m,o)?"type":s(v,o)||T&&T(o)?(s(y,o)&&(c="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function P(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=null;break}r="*"==n}return"comment"}function L(t,e){l.typeFirstDefinitions&&t.eol()&&o(e.context)&&(e.typeAtEndOfLine=i(t,e,t.pos))}return{startState:function(t){return{tokenize:null,context:new e((t||0)-f,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,e){var a=e.context;if(t.sol()&&(null==a.align&&(a.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return L(t,e),null;c=u=null;var s=(e.tokenize||N)(t,e);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&t.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==e.context.type;)r(e);else if("{"==c)n(e,t.column(),"}");else if("["==c)n(e,t.column(),"]");else if("("==c)n(e,t.column(),")");else if("}"==c){for(;"statement"==a.type;)a=r(e);for("}"==a.type&&(a=r(e));"statement"==a.type;)a=r(e)}else c==a.type?r(e):x&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(e,t.column(),"statement",t.current());if("variable"==s&&("def"==e.prevToken||l.typeFirstDefinitions&&i(t,e,t.start)&&o(e.context)&&t.match(/^\s*\(/,!1))&&(s="def"),_.token){var f=_.token(t,e,s);void 0!==f&&(s=f)}return"def"==s&&!1===l.styleDefs&&(s="variable"),e.startOfLine=!1,e.prevToken=u?"def":s||c,L(t,e),s},indent:function(e,n){if(e.tokenize!=N&&null!=e.tokenize||e.typeAtEndOfLine)return t.Pass;var r=e.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(e,r,n,f);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:d):!r.align||p&&")"==r.type?")"!=r.type||o?r.indented+(o?0:f)+(o||!s||/^(?:case|default)\b/.test(n)?0:f):r.indented+d:r.column+(o?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c=a("int long char short double float unsigned signed void bool"),u=a("SEL instancetype id Class Protocol BOOL");function f(t){return s(c,t)||/.+_t$/.test(t)}var d="case do else for if switch while struct enum union";function p(t,e){if(!e.startOfLine)return!1;for(var n,r=null;n=t.peek();){if("\\"==n&&t.match(/^.$/)){r=p;break}if("/"==n&&t.match(/^\/[\/\*]/,!1))break;t.next()}return e.tokenize=r,"meta"}function h(t,e){return"type"==e.prevToken&&"type"}function m(t){return!(!t||t.length<2||"_"!=t[0]||"_"!=t[1]&&t[1]===t[1].toLowerCase())}function v(t){return t.eatWhile(/[\w\.']/),"number"}function y(t,e){if(t.backUp(1),t.match(/(R|u8R|uR|UR|LR)/)){var n=t.match(/"([^\s\\()]{0,16})\(/);return!!n&&(e.cpp11RawStringDelim=n[1],e.tokenize=b,b(t,e))}return t.match(/(u8|u|U|L)/)?!!t.match(/["']/,!1)&&"string":(t.next(),!1)}function g(t,e){for(var n;null!=(n=t.next());)if('"'==n&&!t.eat('"')){e.tokenize=null;break}return"string"}function b(t,e){var n=e.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return t.match(new RegExp(".*?\\)"+n+'"'))?e.tokenize=null:t.skipToEnd(),"string"}function _(e,n){"string"==typeof e&&(e=[e]);var r=[];function i(t){if(t)for(var e in t)t.hasOwnProperty(e)&&r.push(e)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=e[0],t.registerHelper("hintWords",e[0],r));for(var o=0;o!?|\/#:@]/,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return!!t.match('""')&&(e.tokenize=w,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(t,n){var r=n.context;return!("}"!=r.type||!r.align||!t.eat(">"))&&(n.context=new e(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x(1),e.tokenize(t,e))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),_("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},"*":function(t,e){return"."==e.prevToken?"variable":"operator"},'"':function(t,e){var n;return e.tokenize=(n=t.match('""'),function(t,e){for(var r,i=!1,o=!1;!t.eol();){if(!n&&!i&&t.match('"')){o=!0;break}if(n&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(e.tokenize=null),"string"}),e.tokenize(t,e)},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x(1),e.tokenize(t,e))},indent:function(t,e,n,r){var i=n&&n.charAt(0);return"}"!=t.prevToken&&")"!=t.prevToken||""!=n?"operator"==t.prevToken&&"}"!=n&&"}"!=t.context.type||"variable"==t.prevToken&&"."==i||("}"==t.prevToken||")"==t.prevToken)&&"."==i?2*r+e.indented:e.align&&"}"==e.type?e.indented+(t.context.type==(n||"").charAt(0)?0:r):void 0:t.indented}},modeProps:{closeBrackets:{triples:'"'}}}),_(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":p},modeProps:{fold:["brace","include"]}}),_("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:f,blockKeywords:a(d),atoms:a("null true false"),hooks:{"#":p},modeProps:{fold:["brace","include"]}}),_("text/x-objectivec",{name:"clike",keywords:a(l+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(t){return f(t)||s(u,t)},builtin:a("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:a(d+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:m,hooks:{"#":p,"*":h},modeProps:{fold:["brace","include"]}}),_("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:f,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":p},modeProps:{fold:["brace","include"]}});var k=null;_("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(t){var e=t.charAt(0);return e===e.toUpperCase()&&e!==e.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return e.tokenize=function t(e){return function(n,r){for(var i,o=!1,a=!1;!n.eol();){if(!o&&n.match('"')&&("single"==e||n.match('""'))){a=!0;break}if(!o&&n.match("``")){k=t(e),a=!0;break}i=n.next(),o="single"==e&&!o&&"\\"==i}return a&&(r.tokenize=null),"string"}}(t.match('""')?"triple":"single"),e.tokenize(t,e)},"`":function(t,e){return!(!k||!t.match("`"))&&(e.tokenize=k,k=null,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(t,e,n){if(("variable"==n||"type"==n)&&"."==e.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n("VrN/"))},SDHs:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.user__menu {\n min-width: 280px;\n position: absolute;\n right: 0;\n left: auto;\n padding: 0;\n border-radius: 0;\n text-align: center;\n background-color: #fff;\n}\n.user__menu .user-header {\n z-index: 5;\n height: 100px;\n background-color: rgba(41, 58, 72, 0.69);\n margin: -1rem;\n overflow: hidden;\n}\n.user__menu .user-header>img {\n width: 100%;\n}\n.user__menu .user-avatar {\n z-index: 8;\n margin: -40px auto 0;\n height: 80px;\n width: 80px;\n border-radius: 50%;\n overflow: hidden;\n}\n.user__menu .user-avatar>img {\n background: #fff;\n height: 80px;\n width: 80px;\n border: 5px solid transparent;\n}\nheader .modal__footer {\n background-color: #f9f9f9;\n padding: 10px;\n border-top: 1px solid #e8e8e8;\n}\n",""])},SKRR:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".theme-card[data-v-135435cd] {\n background-size: cover;\n box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.25);\n font-size: 0.78rem;\n color: #ddd;\n height: 100%;\n}\n.theme-card .color-overlay[data-v-135435cd] {\n height: 100%;\n background: linear-gradient(to right, rgba(42, 159, 255, 0.2) 0%, #212120 60%, #212120 100%);\n background-blend-mode: multiply;\n}\n.theme-card .theme-content[data-v-135435cd] {\n width: 40%;\n float: right;\n padding-right: 1.25rem;\n height: 100%;\n margin-bottom: 0;\n}\n.theme-card .theme-content .theme-title[data-v-135435cd] {\n color: #ffffff;\n text-transform: uppercase;\n line-height: 1;\n letter-spacing: 4px;\n margin: 0.75rem 0;\n}\n.theme-card .theme-content .theme-info[data-v-135435cd] {\n letter-spacing: 1px;\n font-size: 0.8rem;\n line-height: 1;\n margin: 0;\n opacity: 0.6;\n}\n.theme-card .theme-content .theme-header[data-v-135435cd] {\n margin-bottom: 3rem;\n}\n.theme-card .theme-content .theme-desc[data-v-135435cd] {\n margin-bottom: 4.5rem;\n}\n.theme-card .theme-content .theme-btn[data-v-135435cd] {\n bottom: 1.25rem;\n right: 2.25rem;\n position: absolute;\n}\n.theme-card .icon-block[data-v-135435cd] {\n padding: 1.25em;\n display: inline-block;\n}\n.theme-card .icon-block__icon i[data-v-135435cd] {\n margin-right: 0.5em;\n color: #ffffff;\n opacity: 0.8;\n}\n.theme-card .icon-block__icon i[data-v-135435cd]:hover {\n opacity: 1;\n}\n@media (max-width: 992px) {\n.theme-card .theme-content[data-v-135435cd] {\n width: 100%;\n float: none;\n padding: 1.25rem;\n}\n.theme-card .color-overlay[data-v-135435cd] {\n background: linear-gradient(to bottom, rgba(0, 140, 186, 0.2) 0%, #212120 60%, #212120 100%);\n}\n.theme-card .icon-block[data-v-135435cd] {\n display: block;\n width: 100%;\n}\n}",""])},Tcbo:function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},TepM:function(t,e,n){"use strict";var r=n("JJuG");n.n(r).a},Tq2M:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".scrolltop[data-v-2c00c62a] {\n position: fixed;\n z-index: 999;\n bottom: 1rem;\n right: 1rem;\n padding: 0.48rem;\n color: #fff;\n background: #008cba;\n text-align: center;\n font-size: 100%;\n line-height: 1rem;\n cursor: pointer;\n transition: opacity 0.3s ease-in;\n}",""])},"U/kh":function(t,e,n){var r=n("jgXO");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},U6jy:function(t,e){t.exports=function(){for(var t={},e=0;e=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},V5G8:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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=9)}([function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},l={},c={},u={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=u.block:t&a.LEVEL&a.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}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"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(l[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.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){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(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=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),a=n(5),s=n(0),l=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(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 o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=c(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},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 r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.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=s.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 r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),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,r,i){t=t.split(r,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,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.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=s.find(t.nextSibling));var r=c(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function c(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.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 r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(6),s=n(2),l=n(0),c=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(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 o.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 r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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(){return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t){this.domNode=t,this.domNode[r.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 r.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 r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},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[r.DATA_KEY]&&delete this.domNode[r.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?r.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?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(7),o=n(8),a=n(0),s=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=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},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=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(1).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(1).default);e.default=a},function(t,e,n){t.exports=n(10)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=n(3),o=n(4),a=n(12),s=n(13),l=n(14),c=n(15),u=n(16),f=n(1),d=n(7),p=n(8),h=n(6),m=n(0),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.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";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();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){for(var e=0,n=this.head;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);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+l-t)):n(r,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),a=n(0),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=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,s),n.attach(),n}return i(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,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(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}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(4).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),a=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(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,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},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=a.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=a.Scope.INLINE_BLOT,e}(o.default);e.default=s}])},t.exports=r()},VYsd:function(t,e,n){var r=n("gycH");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),h=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),v=/Android/.test(t),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),g=m||/Mac/.test(e),b=/\bCrOS\b/.test(t),_=/win/i.test(e),w=f&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=g&&(c||f&&(null==w||w<12.11)),k=n||a&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var O,E=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function A(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function S(t,e){return A(t).appendChild(e)}function j(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}m?$=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&($=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null};function D(t,e){for(var n=0;n=e)return r+Math.min(a,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var V=[""];function G(t){for(;V.length<=t;)V.push(Z(V)+" ");return V[t]}function Z(t){return t[t.length-1]}function Y(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function it(t){return t.charCodeAt(0)>=768&&rt.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var st=null;function lt(t,e,n){var r;st=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var ct=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(t,e,n){this.level=t,this.from=e,this.to=n}return function(l,c){var u="ltr"==c?"L":"R";if(0==l.length||"ltr"==c&&!n.test(l))return!1;for(var f,d=l.length,p=[],h=0;h-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function mt(t,e){var n=pt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function bt(t){t.prototype.on=function(t,e){dt(this,t,e)},t.prototype.off=function(t,e){ht(this,t,e)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function kt(t){_t(t),wt(t)}function Ct(t){return t.target||t.srcElement}function Ot(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),g&&t.ctrlKey&&1==e&&(e=3),e}var Et,At,St=function(){if(a&&s<9)return!1;var t=j("div");return"draggable"in t||"dragDrop"in t}();function jt(t){if(null==Et){var e=j("span","​");S(t,j("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Et=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Et?j("span","​"):j("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Tt(t){if(null!=At)return At;var e=S(t,document.createTextNode("AخA")),n=O(e,0,1).getBoundingClientRect(),r=O(e,1,2).getBoundingClientRect();return A(t),!(!n||n.left==n.right)&&(At=r.right-n.right<3)}var Nt,Pt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Lt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Mt="oncopy"in(Nt=j("div"))||(Nt.setAttribute("oncopy","return;"),"function"==typeof Nt.oncopy),$t=null,qt={},Rt={};function It(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),qt[t]=e}function Ft(t){if("string"==typeof t&&Rt.hasOwnProperty(t))t=Rt[t];else if(t&&"string"==typeof t.name&&Rt.hasOwnProperty(t.name)){var e=Rt[t.name];"string"==typeof e&&(e={name:e}),(t=J(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ft("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ft("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Dt(t,e){e=Ft(e);var n=qt[e.name];if(!n)return Dt(t,"text/plain");var r=n(t,e);if(Bt.hasOwnProperty(e.name)){var i=Bt[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Bt={};function zt(t,e){R(e,Bt.hasOwnProperty(t)?Bt[t]:Bt[t]={})}function Ut(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ht(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Kt(t,e,n){return!t.startState||t.startState(e,n)}var Wt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Vt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?ee(n,Vt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?ee(t.line,e):n<0?ee(t.line,0):t}(e,Vt(t,e.line).text.length)}function ce(t,e){for(var n=[],r=0;r=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pose},Wt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Wt.prototype.backUp=function(t){this.pos-=t},Wt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Wt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Wt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ue=function(t,e){this.state=t,this.lookAhead=e},fe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function de(t,e,n,r){var i=[t.state.modeGen],o={};we(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],l=1,c=0;n.state=!0,we(t,e.text,s.mode,n,(function(t,e){for(var n=l;ct&&i.splice(l,1,t,i[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Ut(t.doc.mode,r.state),o=de(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function he(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new fe(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Vt(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ue?c.lookAhead:0)<=o.modeFrontier))return s;var u=I(l.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(t,e,n),a=o>r.first&&Vt(r,o-1).stateAfter,s=a?fe.fromSaved(r,a,o):new fe(r,Kt(r.mode),o);return r.iter(o,e,(function(n){me(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}fe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,e,n){return e instanceof ue?new fe(t,Ut(t.mode,e.state),n,e.lookAhead):new fe(t,Ut(t.mode,e),n)},fe.prototype.save=function(t){var e=!1!==t?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function be(t,e,n,r){var i,o,a=t.doc,s=a.mode,l=Vt(a,(e=le(a,e)).line),c=he(t,e.line,n),u=new Wt(l.text,t.options.tabSize,c);for(r&&(o=[]);(r||u.post.options.maxHighlightLength?(s=!1,a&&me(t,e,r,f.pos),f.pos=e.length,l=null):l=_e(ye(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;c=e:o.to>e);(r||(r=[])).push(new Ce(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var b=0;be)&&(!n||Le(n,o.marker)<0)&&(n=o.marker)}return n}function Ie(t,e,n,r,i){var o=Vt(t,e),a=ke&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ne(c.to,n)>=0:ne(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ne(c.from,r)<=0:ne(c.from,r)<0)))return!0}}}function Fe(t){for(var e;e=$e(t);)t=e.find(-1,!0).line;return t}function De(t,e){var n=Vt(t,e),r=Fe(n);return n==r?e:Xt(r)}function Be(t,e){if(e>t.lastLine())return e;var n,r=Vt(t,e);if(!ze(t,r))return e;for(;n=qe(r);)r=n.find(1,!0).line;return Xt(r)+1}function ze(t,e){var n=ke&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ve=function(t,e,n){this.text=t,Te(this,e),this.height=n?n(this):1};function Ge(t){t.parent=null,je(t)}Ve.prototype.lineNo=function(){return Xt(this)},bt(Ve);var Ze={},Ye={};function Xe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Ye:Ze;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Je(t,e){var n=T("span",null,null,l?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=tn,Tt(t.display.measure)&&(a=ut(o,t.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],rn(o,r,pe(t,o,e!=t.display.externalMeasured&&Xt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(jt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return mt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function Qe(t){var e=j("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function tn(t,e,n,r,i,o,l){if(e){var c,u=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;ic&&f.from<=c);d++);if(f.to>=u)return t(n,r,i,o,a,s,l);t(n,r.slice(0,f.to-c),i,o,null,s,l),o=null,r=r.slice(f.to-c),c=f.to}}}function nn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function rn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,l,c,u,f,d,p=i.length,h=0,m=1,v="",y=0;;){if(y==h){l=c=u=s="",d=null,f=null,y=1/0;for(var g=[],b=void 0,_=0;_h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&y>w.to&&(y=w.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(u+=" "+x.startStyle),x.endStyle&&w.to==y&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var k in x.attributes)(d||(d={}))[k]=x.attributes[k];x.collapsed&&(!f||Le(f.marker,x)<0)&&(f=w)}else w.from>h&&y>w.from&&(y=w.from)}if(b)for(var C=0;C=p)break;for(var E=Math.min(p,y);;){if(v){var A=h+v.length;if(!f){var S=A>E?v.slice(0,E-h):v;e.addToken(e,S,a?a+l:l,u,h+S.length==y?c:"",s,d)}if(A>=E){v=v.slice(E-h),h=E;break}h=A,u=""}v=i.slice(o,o=n[m++]),a=Xe(n[m++],e.cm.options)}}else for(var j=1;jn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Nn(t,e,n,r){return Mn(t,Ln(t,e),n,r)}function Pn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Rn(e.map,n,r),l=o.node,c=o.start,u=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&it(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var p;c>0&&(f=r="right"),i=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+or(t.display),top:h.top,bottom:h.bottom}:qn}for(var m=i.top-e.rect.top,v=i.bottom-e.rect.top,y=(m+v)/2,g=e.view.measure.heights,b=0;be)&&(i=(o=l-s)-1,e>=l&&(a="right")),null!=i){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=0&&(n=t[i]).left==n.right;i--);return n}function Fn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var f=lt(s,l,c),d=st,p=u(l,f,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function Zn(t,e){var n=0;e=le(t.doc,e),t.options.lineWrapping||(n=or(t.display)*e.ch);var r=Vt(t.doc,e.line),i=He(r)+Cn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(t,e,n,r,i){var o=ee(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Xn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Jt(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,Vt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Vt(r,i);;){var s=er(t,a,i,e,n),l=Re(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Vt(r,i=c.line)}}function Jn(t,e,n,r){r-=Hn(e);var i=e.text.length,o=at((function(e){return Mn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=at((function(e){return Mn(t,n,e).top>r}),o,i)}}function Qn(t,e,n,r){return n||(n=Ln(t,e)),Jn(t,e,n,Kn(t,e,Mn(t,n,r),"line").top)}function tr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function er(t,e,n,r,i){i-=He(e);var o=Ln(t,e),a=Hn(e),s=0,l=e.text.length,c=!0,u=ut(e,t.doc.direction);if(u){var f=(t.options.lineWrapping?rr:nr)(t,e,n,o,u,r,i);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,p,h=null,m=null,v=at((function(e){var n=Mn(t,o,e);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=e,m=n),!0)}),s,l),y=!1;if(m){var g=r-m.left=_.bottom?1:0}return Yn(n,v=ot(e.text,v,1),p,y,r-d)}function nr(t,e,n,r,i,o,a){var s=at((function(s){var l=i[s],c=1!=l.level;return tr(Gn(t,ee(n,c?l.to:l.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Gn(t,ee(n,c?l.from:l.to,c?"after":"before"),"line",e,r);tr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function rr(t,e,n,r,i,o,a){var s=Jn(t,e,r,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=l)){var h=Mn(t,r,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function ir(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==$n){$n=j("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)$n.appendChild(document.createTextNode("x")),$n.appendChild(j("br"));$n.appendChild(document.createTextNode("x"))}S(t.measure,$n);var n=$n.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),A(t.measure),n||1}function or(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=j("span","xxxxxxxxxx"),n=j("pre",[e],"CodeMirror-line-like");S(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ar(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:sr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function sr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function lr(t){var e=ir(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/or(t.display)-3);return function(i){if(ze(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)ke&&De(t.doc,e)i.viewFrom?hr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)hr(t);else if(e<=i.viewFrom){var o=mr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(t)}else if(n>=i.viewTo){var a=mr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(t)}else{var s=mr(t,e,e,-1),l=mr(t,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(an(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):hr(t)}var c=i.externalMeasured;c&&(n=i.lineN&&e=r.viewTo)){var o=r.view[fr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==D(a,n)&&a.push(n)}}}function hr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function mr(t,e,n,r){var i,o=fr(t,e),a=t.display.view;if(!ke||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}for(;De(t.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().linee||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(m,n||0,null==r?d:r,(function(t,e,i,f){var v="ltr"==i,y=p(t,v?"left":"right"),g=p(e-1,v?"right":"left"),b=null==n&&0==t,_=null==r&&e==d,w=0==f,x=!m||f==m.length-1;if(g.top-y.top<=3){var k=(c?_:b)&&x,C=(c?b:_)&&w?s:(v?y:g).left,O=k?l:(v?g:y).right;u(C,y.top,O-C,y.bottom)}else{var E,A,S,j;v?(E=c&&b&&w?s:y.left,A=c?l:h(t,i,"before"),S=c?s:h(e,i,"after"),j=c&&_&&x?l:g.right):(E=c?h(t,i,"before"):s,A=!c&&b&&w?l:y.right,S=!c&&_&&x?s:g.left,j=c?h(e,i,"after"):l),u(E,y.top,A-E,y.bottom),y.bottom0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function kr(t){t.state.focused||(t.display.input.focus(),Or(t))}function Cr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Er(t))}),100)}function Or(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(mt(t,"focus",t,e),t.state.focused=!0,L(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function Er(t,e){t.state.delayingBlurEvent||(t.state.focused&&(mt(t,"blur",t,e),t.state.focused=!1,E(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Ar(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Yt(i.line,l),Sr(i.line),i.rest))for(var p=0;pt.display.sizerWidth){var h=Math.ceil(c/or(t.display));h>t.display.maxLineLength&&(t.display.maxLineLength=h,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Sr(t){if(t.widgets)for(var e=0;e=a&&(o=Jt(e,He(Vt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Tr(t,e){var n=t.display,r=ir(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=jn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+On(n),l=e.tops-r;if(e.topi+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=i&&(a.scrollTop=u)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,d=Sn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>d;return p&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.leftd+f-3&&(a.scrollLeft=e.right+(p?0:10)-d),a}function Nr(t,e){null!=e&&(Mr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Pr(t){Mr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Lr(t,e,n){null==e&&null==n||Mr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Mr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,$r(t,Zn(t,e.from),Zn(t,e.to),e.margin))}function $r(t,e,n,r){var i=Tr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Lr(t,i.scrollLeft,i.scrollTop)}function qr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||li(t,{top:e}),Rr(t,e,!0),n&&li(t),ri(t,100))}function Rr(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Ir(t,e,n,r){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Fr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+On(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Dr=function(t,e,n){this.cm=n;var r=this.vert=j("div",[j("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=j("div",[j("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),dt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),dt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Dr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var t=g&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Dr.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Dr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Br=function(){};function zr(t,e){e||(e=Fr(t));var n=t.display.barWidth,r=t.display.barHeight;Ur(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Ar(t),Ur(t,Fr(t)),n=t.display.barWidth,r=t.display.barHeight}function Ur(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Br.prototype.update=function(){return{bottom:0,right:0}},Br.prototype.setScrollLeft=function(){},Br.prototype.setScrollTop=function(){},Br.prototype.clear=function(){};var Hr={native:Dr,null:Br};function Kr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&E(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Hr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),dt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Ir(t,e):qr(t,e)}),t),t.display.scrollbars.addClass&&L(t.display.wrapper,t.display.scrollbars.addClass)}var Wr=0;function Vr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Gr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Yr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Ar(e),t.barMeasure=Fr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Nn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+An(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Sn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Xr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=j("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+An(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?ee(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?ee(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=Gn(t,e),l=n&&n!=e?Gn(t,n):s,c=Tr(t,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=c.scrollTop&&(qr(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Ir(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(e,le(r,t.scrollToPos.from),le(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a=t.display.viewTo)){var n=+new Date+t.options.workTime,r=he(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Ut(e.mode,r.state):null,l=de(t,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return ri(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Qr(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;di(t)&&(hr(t),e.dims=ar(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),ke&&(o=De(t.doc,o),a=Be(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=an(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=an(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,fr(t,n)))),r.viewTo=n}(t,o,a),n.viewOffset=He(Vt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=vr(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=P();if(!e||!N(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&N(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&g&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,f=0;f-1&&(p=!1),fn(t,d,u,n)),p&&(A(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(te(t.options,u)))),a=d.node.nextSibling}else{var h=gn(t,d,u,n);o.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P()&&(t.activeElt.focus(),t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(u),A(n.cursorDiv),A(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function si(t,e){for(var n=e.viewport,r=!0;(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Sn(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+On(t.display)-jn(t),n.top)}),e.visible=jr(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&ai(t,e);r=!1){Ar(t);var i=Fr(t);yr(t),zr(t,i),ui(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function li(t,e){var n=new oi(t,e);if(ai(t,n)){Ar(t),si(t,n);var r=Fr(t);yr(t),zr(t,r),ui(t,r),n.finish()}}function ci(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ui(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+An(t)+"px"}function fi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=sr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&g&&l)t:for(var d=e.target,p=a.view;d!=s;d=d.parentNode)for(var h=0;h=0&&ne(t,r.to())<=0)return n}return-1};var ki=function(t,e){this.anchor=t,this.head=e};function Ci(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ne(t.from(),e.from())})),n=D(e,i);for(var o=1;o0:l>=0){var c=ae(s.from(),a.from()),u=oe(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new ki(f?u:c,f?c:u))}}return new xi(e,n)}function Oi(t,e){return new xi([new ki(t,e||t)],0)}function Ei(t){return t.text?ee(t.from.line+t.text.length-1,Z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Ai(t,e){if(ne(t,e.from)<0)return t;if(ne(t,e.to)<=0)return Ei(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ei(e).ch-e.to.ch),ee(n,r)}function Si(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,h-1),t.insert(s.line+1,y)}cn(t,"change",t,e)}function Mi(t,e,n){!function t(r,i,o){if(r.linked)for(var a=0;as-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Fi(t.done),Z(t.done)):t.done.length&&!Z(t.done).ranges?Z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Z(t.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==ne(e.from,e.to)&&0==ne(e.from,a.to)?a.to=Ei(e):o.changes.push(Ii(t,e));else{var l=Z(i.done);for(l&&l.ranges||zi(t.sel,i.done),o={changes:[Ii(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||mt(t,"historyAdded")}function Bi(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Z(i.done),e))?i.done[i.done.length-1]=e:zi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}function zi(t,e){var n=Z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Ui(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Hi(t){if(!t)return null;for(var e,n=0;n-1&&(Z(s)[f]=c[f],delete c[f])}}}return r}function Vi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ne(e,i)<0;o!=ne(n,i)<0?(i=e,e=n):o!=ne(e,n)<0&&(e=n)}return new ki(i,e)}return new ki(n||e,e)}function Gi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Qi(t,new xi([Vi(t.sel.primary(),e,n,i)],0),r)}function Zi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(i&&(mt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(f=ao(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(d=ne(f,n))&&(r<0?d<0:d>0))return io(t,f,e,r,i)}var p=l.find(r<0?-1:1);return(r<0?c:u)&&(p=ao(t,p,r,p.line==e.line?o:null)),p?io(t,p,e,r,i):null}}return e}function oo(t,e,n,r,i){var o=r||1,a=io(t,e,n,o,i)||!i&&io(t,e,n,o,!0)||io(t,e,n,-o,i)||!i&&io(t,e,n,-o,!0);return a||(t.cantEdit=!0,ee(t.first,0))}function ao(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?le(t,ee(e.line-1)):null:n>0&&e.ch==(r||Vt(t,e.line)).text.length?e.line0)){var u=[l,1],f=ne(c.from,s.from),d=ne(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)uo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else uo(t,e)}}function uo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ne(e.from,e.to)){var n=Si(t,e);Di(t,e,n,t.cm?t.cm.curOp.id:NaN),ho(t,e,n,Ae(t,e));var r=[];Mi(t,(function(t,n){n||-1!=D(r,t.history)||(go(t.history,e),r.push(t.history)),ho(t,e,null,Ae(t,e))}))}}function fo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c=0;--p){var h=d(p);if(h)return h.v}}}}function po(t,e){if(0!=e&&(t.first+=e,t.sel=new xi(Y(t.sel.ranges,(function(t){return new ki(ee(t.anchor.line+e,t.anchor.ch),ee(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){dr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ee(o,Vt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Gt(t,e.from,e.to),n||(n=Si(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=Xt(Fe(Vt(r,o.line))),r.iter(l,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&yt(t),Li(r,e,n,lr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=Ke(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Vt(t,r).stateAfter;if(i&&(!(i instanceof ue)||r+i.lookAhead1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ie(t,e.line,e,n,o)||e.line!=n.line&&Ie(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ke=!0}o.addToHistory&&Di(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&Fe(t)==c.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&Yt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){ze(t,e)&&Yt(e,0)})),o.clearOnEnter&&dt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)dr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)pr(c,u,"text");o.atomic&&no(c.doc),cn(c,"markerAdded",c,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Vr(t),gt(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&dr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&cn(t,"markerCleared",t,this,r,i),e&&Gr(t),this.parent&&this.parent.clear()}},Oo.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;l--)co(this,r[l]);s?Ji(this,s):this.cm&&Pr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=le(this,t),e=le(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),le(this,ee(n,e))},indexFromPos:function(t){var e=(t=le(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var u=t.dataTransfer.getData("Text");if(u){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),to(e.doc,Oi(n,n)),f)for(var d=0;d=0;e--)mo(t.doc,"",r[e].from,r[e].to,"+delete");Pr(t)}))}function Jo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Qo(t,e,n){var r=Jo(t,e.ch,n);return null==r?null:new ee(e.line,r,n<0?"after":"before")}function ta(t,e,n,r,i){if(t){var o=ut(n,e.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Ln(e,n);a=i<0?n.text.length-1:0;var u=Mn(e,c,a).top;a=at((function(t){return Mn(e,c,t).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new ee(r,a,l)}}return new ee(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=g?Uo.macDefault:Uo.pcDefault;var ea={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),U)},killLine:function(t){return Xo(t,(function(e){if(e.empty()){var n=Vt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ee(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ee(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Vt(t.doc,i.line-1).text;a&&(i=new ee(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ee(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Qr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(ne((i=c.ranges[i]).from(),e)<0||e.xRel>0)&&(ne(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,c=ti(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,ht(i.wrapper.ownerDocument,"mouseup",c),ht(i.wrapper.ownerDocument,"mousemove",u),ht(i.scroller,"dragstart",f),ht(i.scroller,"drop",c),o||(_t(e),r.addNew||Gi(t.doc,n,null,null,r.extend),l||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),dt(i.wrapper.ownerDocument,"mouseup",c),dt(i.wrapper.ownerDocument,"mousemove",u),dt(i.scroller,"dragstart",f),dt(i.scroller,"drop",c),Cr(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;_t(e);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=ur(t,e,!0,!0),s=-1;else{var u=ya(t,n,r.unit);a=r.extend?Vi(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Qi(o,Ci(t,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Ci(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Yi(o,s,a,H):(s=0,Qi(o,new xi([a],0),H),l=o.sel);var f=n;function d(e){if(0!=ne(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],c=t.options.tabSize,u=I(Vt(o,n.line).text,n.ch,c),d=I(Vt(o,e.line).text,e.ch,c),p=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,e.line),v=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=v;m++){var y=Vt(o,m).text,g=W(y,p,c);p==h?i.push(new ki(ee(m,g),ee(m,g))):y.length>g&&i.push(new ki(ee(m,g),ee(m,W(y,h,c))))}i.length||i.push(new ki(n,n)),Qi(o,Ci(t,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,_=a,w=ya(t,e,r.unit),x=_.anchor;ne(w.anchor,x)>0?(b=w.head,x=ae(_.from(),w.anchor)):(b=w.anchor,x=oe(_.to(),w.head));var k=l.ranges.slice(0);k[s]=function(t,e){var n=e.anchor,r=e.head,i=Vt(t.doc,n.line);if(0==ne(n,r)&&n.sticky==r.sticky)return e;var o=ut(i);if(!o)return e;var a=lt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=lt(o,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?f<0:f>0}var d=o[c+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?e:new ki(new ee(n.line,h,m),r)}(t,new ki(le(o,x),b)),Qi(o,Ci(t,k,s),H)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(e){t.state.selectingText=!1,h=1/0,e&&(_t(e),i.input.focus()),ht(i.wrapper.ownerDocument,"mousemove",v),ht(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ti(t,(function(e){0!==e.buttons&&Ot(e)?function e(n){var a=++h,s=ur(t,n,!0,"rectangle"==r.unit);if(s)if(0!=ne(s,f)){t.curOp.focus=P(),d(s);var l=jr(i,o);(s.line>=l.to||s.linep.bottom?20:0;c&&setTimeout(ti(t,(function(){h==a&&(i.scroller.scrollTop+=c,e(n))})),50)}}(e):m(e)})),y=ti(t,m);t.state.selectingText=y,dt(i.wrapper.ownerDocument,"mousemove",v),dt(i.wrapper.ownerDocument,"mouseup",y)}(t,r,e,o)}(e,r,o,t):Ct(t)==n.scroller&&_t(t):2==i?(r&&Gi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?e.display.input.onContextMenu(t):Cr(e)))}}function ya(t,e,n){if("char"==n)return new ki(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new ki(ee(e.line,0),le(t.doc,ee(e.line+1,0)));var r=n(t,e);return new ki(r.from,r.to)}function ga(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&_t(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!gt(t,n))return xt(e);o-=s.top-a.viewOffset;for(var l=0;l=i)return mt(t,n,t,Jt(t.doc,o),t.display.gutterSpecs[l].className,e),xt(e)}}function ba(t,e){return ga(t,e,"gutterClick",!0)}function _a(t,e){kn(t.display,e)||function(t,e){return!!gt(t,"gutterContextMenu")&&ga(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||k||t.display.input.onContextMenu(e)}function wa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bn(t)}ma.prototype.compare=function(t,e,n){return this.time+400>t&&0==ne(e,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},ka={},Ca={};function Oa(t,e,n){if(!e!=!(n&&n!=xa)){var r=t.display.dragFunctions,i=e?dt:ht;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ea(t){t.options.lineWrapping?(L(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(E(t.display.wrapper,"CodeMirror-wrap"),We(t)),cr(t),dr(t),Bn(t),setTimeout((function(){return zr(t)}),100)}function Aa(t,e){var n=this;if(!(this instanceof Aa))return new Aa(t,e);this.options=e=e?R(e):{},R(ka,e,!1);var r=e.value;"string"==typeof r?r=new No(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Aa.inputStyles[e.inputStyle](this),o=this.display=new vi(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,wa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;dt(e.scroller,"mousedown",ti(t,va)),dt(e.scroller,"dblclick",a&&s<11?ti(t,(function(e){if(!vt(t,e)){var n=ur(t,e);if(n&&!ba(t,e)&&!kn(t.display,e)){_t(e);var r=t.findWordAt(n);Gi(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||_t(e)}),dt(e.scroller,"contextmenu",(function(e){return _a(t,e)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}dt(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ba(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),dt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),dt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!kn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(s):new ki(ee(s.line,0),le(t.doc,ee(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),_t(n)}i()})),dt(e.scroller,"touchcancel",i),dt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(qr(t,e.scroller.scrollTop),Ir(t,e.scroller.scrollLeft,!0),mt(t,"scroll",t))})),dt(e.scroller,"mousewheel",(function(e){return wi(t,e)})),dt(e.scroller,"DOMMouseScroll",(function(e){return wi(t,e)})),dt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||kt(e)},over:function(e){vt(t,e)||(function(t,e){var n=ur(t,e);if(n){var r=document.createDocumentFragment();br(t,n,r),t.display.dragCursor||(t.display.dragCursor=j("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),S(t.display.dragCursor,r)}}(t,e),kt(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Po<100))kt(e);else if(!vt(t,e)&&!kn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=j("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ti(t,Lo),leave:function(e){vt(t,e)||Mo(t)}};var l=e.input.getField();dt(l,"keyup",(function(e){return fa.call(t,e)})),dt(l,"keydown",ti(t,ua)),dt(l,"keypress",ti(t,da)),dt(l,"focus",(function(e){return Or(t,e)})),dt(l,"blur",(function(e){return Er(t,e)}))}(this),Ro(),Vr(this),this.curOp.forceUpdate=!0,$i(this,r),e.autofocus&&!y||this.hasFocus()?setTimeout(q(Or,this),20):Er(this),Ca)Ca.hasOwnProperty(c)&&Ca[c](n,e[c],xa);di(this),e.finishInit&&e.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?I(Vt(o,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var f="",d=0;if(t.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,f+="\t";if(da,l=Pt(e),c=null;if(s&&r.ranges.length>1)if(Ta&&Ta.text.join("\n")==e){if(r.ranges.length%Ta.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ee(h.line,h.ch-n):t.state.overwrite&&!s?m=ee(m.line,Math.min(Vt(o,m.line).text.length,m.ch+Z(l).length)):s&&Ta&&Ta.lineWise&&Ta.text.join("\n")==e&&(h=m=ee(h.line,0)));var v={from:h,to:m,text:c?c[d%c.length]:l,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};co(t.doc,v),cn(t,"inputRead",t,v)}e&&!s&&Ma(t,e),Pr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function La(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Qr(e,(function(){return Pa(e,n,0,null,"paste")})),!0}function Ma(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=ja(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Vt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ja(t,i.head.line,"smart"));a&&cn(t,"electricInput",t,i.head.line)}}}function $a(t){for(var e=[],n=[],r=0;r=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lt(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=f?"before":"after";return new ee(n.line,d,p)}}var h=function(t,e,r){for(var o=function(t,e){return e?new ee(n.line,l(t,1),"before"):new ee(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==v||r>0&&v==e.text.length||!(m=h(r>0?0:i.length-1,r,c(v)))?null:m}(t.cm,s,e,n):Qo(s,e,n))){if(r||(a=e.line+n)=t.first+t.size||(e=new ee(a,e.ch,e.sticky),!(s=Vt(t,a))))return!1;e=ta(i,t.cm,s,e.line,n)}else e=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,u="group"==r,f=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=s.text.charAt(e.ch)||"\n",h=et(p,f)?"w":u&&"\n"==p?"n":!u||/\s/.test(p)?null:"p";if(!u||d||h||(h="s"),c&&c!=h){n<0&&(n=1,l(),e.sticky="after");break}if(h&&(c=h),n>0&&!l(!d))break}var m=oo(t,e,o,a,!0);return re(o,m)&&(m.hitSide=!0),m}function Fa(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*ir(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Xn(t,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Da=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(t,e){var n=Pn(t,e.line);if(!n||n.hidden)return null;var r=Vt(t.doc,e.line),i=Tn(n,r,e.line),o=ut(r,t.doc.direction),a="left";o&&(a=lt(o,e.ch)%2?"right":"left");var s=Rn(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function za(t,e){return e&&(t.bad=!0),t}function Ua(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return za(t.clipPos(ee(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i=e.display.viewTo||o.line=e.display.viewFrom&&Ba(e,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=ee(a.line-1,Vt(r.doc,a.line-1).length)),s.ch==Vt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(t=fr(r,a.line))?(e=Xt(i.view[0].line),n=i.view[0].node):(e=Xt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,c,u=fr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Xt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(t){t&&(c(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var o,d=e.getAttribute("cm-marker");if(d){var p=t.findMarks(ee(r,0),ee(i+1,0),(v=+d,function(t){return t.id==v}));return void(p.length&&(o=p[0].find(0))&&u(Gt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;h&&c();for(var m=0;m1&&d.length>1;)if(Z(f)==Z(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),e++}for(var p=0,h=0,m=f[0],v=d[0],y=Math.min(m.length,v.length);pa.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var w=ee(e,p),x=ee(l,d.length?Z(d).length-h:0);return f.length>1||f[0]||ne(w,x)?(mo(r.doc,f,w,x,"+input"),!0):void 0},Da.prototype.ensurePolled=function(){this.forceCompositionEnd()},Da.prototype.reset=function(){this.forceCompositionEnd()},Da.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Da.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Da.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return dr(t.cm)}))},Da.prototype.setUneditable=function(t){t.contentEditable="false"},Da.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Pa)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Da.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;var Ka=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Ka.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=$a(r);Na({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,U):(n.prevInput="",i.value=e.text.join("\n"),$(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(i.style.width="0px"),dt(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),dt(i,"paste",(function(t){vt(r,t)||La(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),dt(i,"cut",o),dt(i,"copy",o),dt(t.scroller,"paste",(function(e){if(!kn(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),dt(t.lineSpace,"selectstart",(function(e){kn(t,e)||_t(e)})),dt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),dt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ka.prototype.createField=function(t){this.wrapper=Ra(),this.textarea=this.wrapper.firstChild},Ka.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Gn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ka.prototype.showSelection=function(t){var e=this.cm.display;S(e.cursorDiv,t.cursors),S(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ka.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&$(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ka.prototype.getField=function(){return this.textarea},Ka.prototype.supportsTouch=function(){return!1},Ka.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||P()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ka.prototype.blur=function(){this.textarea.blur()},Ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ka.prototype.receivedFocus=function(){this.slowPoll()},Ka.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ka.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Ka.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Lt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||g&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ka.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ka.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ur(n,t),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Qi)(n.doc,Oi(o),U);var u,d=i.style.cssText,p=e.wrapper.style.cssText,h=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){kt(t);var m=function(){ht(window,"mouseup",m),setTimeout(y,20)};dt(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(n,so)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ka.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Ka.prototype.setUneditable=function(){},Ka.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=xa&&i(t,e,n)}:i)}t.defineOption=n,t.Init=xa,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Ti(t)}),!0),n("indentUnit",2,Ti,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ni(t),Bn(t),dr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ee(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(t.doc,e,n[i],ee(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=xa&&t.refresh()})),n("specialCharPlaceholder",Qe,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){wa(t),mi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Yo(e),i=n!=xa&&Yo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ea,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pi(e,t.options.lineNumbers),mi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?sr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return zr(t)}),!0),n("scrollbarStyle","native",(function(t){Kr(t),zr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=pi(t.options.gutters,e),mi(t)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(t){return t}),mi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Er(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Oa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ni,!0),n("addModeClass",!1,Ni,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ni,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Aa),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ti(this,e[t])(this,n,i),mt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Yo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(ja(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Pr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Yi(this.doc,r,new ki(o,c[r].to()),U)}}})),getTokenAt:function(t,e){return be(this,t,e)},getLineTokens:function(t,e){return be(this,ee(t),e,!0)},getTokenTypeAt:function(t){t=le(this.doc,t);var e,n=pe(this,Vt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(t=o,i=!0),r=Vt(this.doc,t)}else r=t;return Kn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-He(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,a,s,l=this.display,c=(t=Gn(this,le(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)c=t.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>f)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=f&&(c=t.bottom),u+e.offsetWidth>d&&(u=d-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==i?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(s=Tr(o,a)).scrollTop&&qr(o,s.scrollTop),null!=s.scrollLeft&&Ir(o,s.scrollLeft))},triggerOnKeyDown:ei(ua),triggerOnKeyPress:ei(da),triggerOnKeyUp:fa,triggerOnMouseDown:ei(va),execCommand:function(t){if(ea.hasOwnProperty(t))return ea[t].call(null,this)},triggerElectric:ei((function(t){Ma(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=le(this.doc,t),a=0;a0&&a(e.charAt(n-1));)--n;for(;r.5)&&cr(this),mt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),$i(this,t),Bn(this),this.display.input.reset(),Lr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},bt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Aa);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Va in No.prototype)No.prototype.hasOwnProperty(Va)&&D(Wa,Va)<0&&(Aa.prototype[Va]=function(t){return function(){return t.apply(this.doc,arguments)}}(No.prototype[Va]));return bt(No),Aa.inputStyles={textarea:Ka,contenteditable:Da},Aa.defineMode=function(t){Aa.defaults.mode||"null"==t||(Aa.defaults.mode=t),It.apply(this,arguments)},Aa.defineMIME=function(t,e){Rt[t]=e},Aa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(t,e){Aa.prototype[t]=e},Aa.defineDocExtension=function(t,e){No.prototype[t]=e},Aa.fromTextArea=function(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(dt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ht(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Aa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ht,t.on=dt,t.wheelEventPixels=_i,t.Doc=No,t.splitLines=Pt,t.countColumn=I,t.findColumn=W,t.isWordChar=tt,t.Pass=z,t.signal=mt,t.Line=Ve,t.changeEnd=Ei,t.scrollbarModel=Hr,t.Pos=ee,t.cmpPos=ne,t.modes=qt,t.mimeModes=Rt,t.resolveMode=Ft,t.getMode=Dt,t.modeExtensions=Bt,t.extendMode=zt,t.copyState=Ut,t.startState=Kt,t.innerMode=Ht,t.commands=ea,t.keyMap=Uo,t.keyName=Zo,t.isModifierKey=Vo,t.lookupKey=Wo,t.normalizeKeyMap=Ko,t.StringStream=Wt,t.SharedTextMarker=Ao,t.TextMarker=Oo,t.LineWidget=xo,t.e_preventDefault=_t,t.e_stopPropagation=wt,t.e_stop=kt,t.addClass=L,t.contains=N,t.rmClass=E,t.keyNames=Fo}(Aa),Aa.version="5.49.0",Aa}()},WFqU:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("yLpj"))},WiJw:function(t,e,n){var r=n("D7zT");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},WmSy:function(t,e,n){(function(e,r,i){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=222)}([function(t,e,n){t.exports=n(189)},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(5),i=n(24),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(60);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){"use strict";var r=n(4);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";var r=n(68);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++nu))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var p=-1,h=!0,m=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c},function(t,e,n){"use strict";var r=n(43);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e){t.exports=n("lJCZ")},function(t,e){t.exports=n("JPgR")},function(t,e,n){var r=n(72),i=n(69),o=n(70),a=n(201),s=n(202).Writable,l=n(203)("follow-redirects"),c={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},u=Object.create(null);function f(t,e){s.call(this),t.headers=t.headers||{},this._options=t,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t.host&&(t.hostname||(t.hostname=t.host),delete t.host),e&&this.on("response",e);var n=this;if(this._onNativeResponse=function(t){n._processResponse(t)},!t.pathname&&t.path){var r=t.path.indexOf("?");r<0?t.pathname=t.path:(t.pathname=t.path.substring(0,r),t.search=t.path.substring(r))}this._performRequest()}function d(t){var e={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach((function(i){var o=i+":",s=n[o]=t[i],c=e[i]=Object.create(s);c.request=function(t,i){return"string"==typeof t?(t=r.parse(t)).maxRedirects=e.maxRedirects:t=Object.assign({protocol:o,maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t),t.nativeProtocols=n,a.equal(t.protocol,o,"protocol mismatch"),l("options",t),new f(t,i)},c.get=function(t,e){var n=c.request(t,e);return n.end(),n}})),e}["abort","aborted","error","socket","timeout"].forEach((function(t){u[t]=function(e){this._redirectable.emit(t,e)}})),f.prototype=Object.create(s.prototype),f.prototype.write=function(t,e,n){if(!("string"==typeof t||"object"==typeof t&&"length"in t))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof e&&(n=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,n)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):n&&n()},f.prototype.end=function(t,e,n){"function"==typeof t?(n=t,t=e=null):"function"==typeof e&&(n=e,e=null);var r=this._currentRequest;this.write(t||"",e,(function(){r.end(null,null,n)}))},f.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},f.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach((function(t){f.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(f.prototype,t,{get:function(){return this._currentRequest[t]}})})),f.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(e){if(this._options.agents){var n=t.substr(0,t.length-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=r.format(this._options),i._redirectable=this,u)o&&i.on(o,u[o]);if(this._isRedirect){var a=0,s=this._requestBodyBuffers;!function t(){if(a=300&&t.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var n,i=this._options.headers;if(307!==t.statusCode&&!(this._options.method in c))for(n in this._options.method="GET",this._requestBodyBuffers=[],i)/^content-/i.test(n)&&delete i[n];if(!this._isRedirect)for(n in i)/^host$/i.test(n)&&delete i[n];var o=r.resolve(this._currentUrl,e);l("redirecting to",o),Object.assign(this._options,r.parse(o)),this._isRedirect=!0,this._performRequest(),t.destroy()}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]},t.exports=d({http:i,https:o}),t.exports.wrap=d},function(t,e){t.exports=n("CxY0")},function(t,e,n){function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var a=new Array(arguments.length),s=0;s-1}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(18);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(18),i=n(30),o=n(32);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(31),i=n(95),o=n(10),a=n(46),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:s).test(a(t))}},function(t,e,n){var r=n(20),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(96),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(6)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(99),i=n(18),o=n(30);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(100),i=n(101),o=n(102),a=n(103),s=n(104);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(16),i=n(14),o=n(36),a=n(10);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(28),i=n(14),o=n(23);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var l=r(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[l?e[c]:c]:void 0}}},function(t,e,n){var r=n(182),i=n(28),o=n(183),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(t,i(e,3),l)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(190),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=_;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(N([])));g&&g!==r&&i.call(g,a)&&(v=g);var b=C.prototype=x.prototype=Object.create(v);k.prototype=b.constructor=C,C.constructor=k,C[l]=k.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},O(E.prototype),E.prototype[s]=function(){return this},u.AsyncIterator=E,u.async=function(t,e,n,r){var i=new E(_(t,e,n,r));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=w(t,e,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function k(){}function C(){}function O(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(n,r){function o(){return new Promise((function(e,o){!function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}(n,r,e,o)}))}return e=e?e.then(o,o):o()}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r-1&&(j.maxBodyLength=t.maxContentLength);var D=T.request(j,(function(e){if(!D.aborted){var n=e;switch(e.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=204===e.statusCode?n:n.pipe(p.createUnzip()),delete e.headers["content-encoding"]}var r=e.req||D,o={status:e.statusCode,statusText:e.statusMessage,headers:e.headers,config:t,request:r};if("stream"===t.responseType)o.data=n,a(b,_,o);else{var s=[];n.on("data",(function(e){s.push(e),t.maxContentLength>-1&&i.concat(s).length>t.maxContentLength&&(n.destroy(),_(m("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,r)))})),n.on("error",(function(e){D.aborted||_(v(e,t,null,r))})),n.on("end",(function(){var e=i.concat(s);"arraybuffer"!==t.responseType&&(e=e.toString(t.responseEncoding)),o.data=e,a(b,_,o)}))}}}));D.on("error",(function(e){D.aborted||_(v(e,t,null,D))})),t.timeout&&(g=setTimeout((function(){D.abort(),_(m("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",D))}),t.timeout)),t.cancelToken&&t.cancelToken.promise.then((function(t){D.aborted||(D.abort(),_(t))})),o.isStream(w)?w.on("error",(function(e){_(v(e,t,null,D))})).pipe(D):D.end(w)}))}},function(t,e){t.exports=n("9lTW")},function(t,e){t.exports=n("1IWx")},function(t,e,n){void 0===r||"renderer"===r.type?t.exports=n(204):t.exports=n(206)},function(t,e,n){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(73)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())},function(t,e){var n=1e3,r=6e4,i=36e5,o=24*i;function a(t,e,n){if(!(t0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===l&&!1===isNaN(t))return e.long?a(s=t,o,"day")||a(s,i,"hour")||a(s,r,"minute")||a(s,n,"second")||s+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var i=n(207),o=n(208);(e=t.exports=n(73)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;r=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}function s(){return r.env.DEBUG}e.inspectOpts=Object.keys(r.env).filter((function(t){return/^debug_/i.test(t)})).reduce((function(t,e){var n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(function(t,e){return e.toUpperCase()})),i=r.env[e];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),t[n]=i,t}),{}),e.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,o.inspect(t,this.inspectOpts).split("\n").map((function(t){return t.trim()})).join(" ")},e.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,o.inspect(t,this.inspectOpts)},e.enable(s())},function(t,e){t.exports=n("ZETi")},function(t,e){t.exports=n("MCLT")},function(t,e,n){"use strict";const i=n(210),o=n(211),a=r.env;let s;function l(t){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(!1===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(t&&!t.isTTY&&!0!==s)return 0;const e=s?1:0;if("win32"===r.platform){const t=i.release().split(".");return Number(r.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in a)||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const t=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)?1:"COLORTERM"in a?1:(a.TERM,e)}(t))}o("no-color")||o("no-colors")||o("color=false")?s=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:l,stdout:l(r.stdout),stderr:l(r.stderr)}},function(t,e){t.exports=n("PENG")},function(t,e,n){"use strict";t.exports=(t,e)=>{e=e||r.argv;const n=t.startsWith("-")?"":1===t.length?"-":"--",i=e.indexOf(n+t),o=e.indexOf("--");return-1!==i&&(-1===o||i=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(75);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(27),l=n.n(s),c=n(11),u=n.n(c),f=n(76),d=n.n(f);function p(t,e){return t(e={exports:{}},e.exports),e.exports}var h=p((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),m=p((function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)})),v=(m.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),y=function(t){if(!v(t))throw TypeError(t+" is not an object!");return t},g=function(t){try{return!!t()}catch(t){return!0}},b=!g((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),_=h.document,w=v(_)&&v(_.createElement),x=!b&&!g((function(){return 7!=Object.defineProperty(w?_.createElement("div"):{},"a",{get:function(){return 7}}).a})),k=Object.defineProperty,C={f:b?Object.defineProperty:function(t,e,n){if(y(t),e=function(t,e){if(!v(t))return t;var n,r;if("function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(e),y(n),x)try{return k(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},O=b?function(t,e,n){return C.f(t,e,function(t,e){return{enumerable:!1,configurable:!0,writable:!0,value:e}}(0,n))}:function(t,e,n){return t[e]=n,t},E={}.hasOwnProperty,A=function(t,e){return E.call(t,e)},S=0,j=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++S+j).toString(36))},N=p((function(t){var e=h["__core-js_shared__"]||(h["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:m.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),P=N("native-function-to-string",Function.toString),L=p((function(t){var e=T("src"),n=(""+P).split("toString");m.inspectSource=function(t){return P.call(t)},(t.exports=function(t,r,i,o){var a="function"==typeof i;a&&(A(i,"name")||O(i,"name",r)),t[r]!==i&&(a&&(A(i,e)||O(i,e,t[r]?""+t[r]:n.join(String(r)))),t===h?t[r]=i:o?t[r]?t[r]=i:O(t,r,i):(delete t[r],O(t,r,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[e]||P.call(this)}))})),M=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},$=function(t,e,n){var r,i,o,a,s=t&$.F,l=t&$.G,c=t&$.S,u=t&$.P,f=t&$.B,d=l?h:c?h[e]||(h[e]={}):(h[e]||{}).prototype,p=l?m:m[e]||(m[e]={}),v=p.prototype||(p.prototype={});for(r in l&&(n=e),n)o=((i=!s&&d&&void 0!==d[r])?d:n)[r],a=f&&i?M(o,h):u&&"function"==typeof o?M(Function.call,o):o,d&&L(d,r,o,t&$.U),p[r]!=o&&O(p,r,a),u&&v[r]!=o&&(v[r]=o)};h.core=m,$.F=1,$.G=2,$.S=4,$.P=8,$.B=16,$.W=32,$.U=64,$.R=128;var q=$,R={}.toString,I=function(t){return R.call(t).slice(8,-1)},F=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==I(t)?t.split(""):Object(t)},D=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},B=function(t){return F(D(t))},z=Math.ceil,U=Math.floor,H=function(t){return isNaN(t=+t)?0:(t>0?U:z)(t)},K=Math.min,W=function(t){return t>0?K(H(t),9007199254740991):0},V=Math.max,G=Math.min,Z=function(t){return function(e,n,r){var i,o=B(e),a=W(o.length),s=function(t,e){return(t=H(t))<0?V(t+e,0):G(t,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Y=p((function(t){var e=N("wks"),n=h.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:T)("Symbol."+t))}).store=e})),X=Y("unscopables"),J=Array.prototype;null==J[X]&&O(J,X,{});var Q=Z(!0);q(q.P,"Array",{includes:function(t){return Q(this,t,arguments.length>1?arguments[1]:void 0)}}),J[X].includes=!0,m.Array.includes;var tt=N("keys"),et=Z(!1),nt=function(t){return tt[t]||(tt[t]=T(t))}("IE_PROTO"),rt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),it=Object.keys||function(t){return function(t,e){var n,r=B(t),i=0,o=[];for(n in r)n!=nt&&A(r,n)&&o.push(n);for(;e.length>i;)A(r,n=e[i++])&&(~et(o,n)||o.push(n));return o}(t,rt)},ot={f:Object.getOwnPropertySymbols},at={f:{}.propertyIsEnumerable},st=Object.assign,lt=!st||g((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=st({},t)[n]||Object.keys(st({},e)).join("")!=r}))?function(t,e){for(var n=Object(D(t)),r=arguments.length,i=1,o=ot.f,a=at.f;r>i;)for(var s,l=F(arguments[i++]),c=o?it(l).concat(o(l)):it(l),u=c.length,f=0;u>f;)s=c[f++],b&&!a.call(l,s)||(n[s]=l[s]);return n}:st;q(q.S+q.F,"Object",{assign:lt}),m.Object.assign;var ct=at.f,ut=function(t){return function(e){for(var n,r=B(e),i=it(r),o=i.length,a=0,s=[];o>a;)n=i[a++],b&&!ct.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},ft=ut(!0);q(q.S,"Object",{entries:function(t){return ft(t)}}),m.Object.entries;var dt=ut(!1);q(q.S,"Object",{values:function(t){return dt(t)}}),m.Object.values;var pt=Y("match"),ht=function(t,e,n){if(v(r=e)&&(void 0!==(i=r[pt])?i:"RegExp"==I(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,i;return String(D(t))},mt=Y("match"),vt="".startsWith;q(q.P+q.F*function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[mt]=!1,!"/./"[t](e)}catch(t){}}return!0}("startsWith"),"String",{startsWith:function(t){var e=ht(this,t,"startsWith"),n=W(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return vt?vt.call(e,r,n):e.slice(n,n+r.length)===r}}),m.String.startsWith;var yt=function(){function t(){}return t.register=function(t){this.database=t},t}(),gt=function(t,e){return(gt=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 bt(t,e){function n(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _t=function(){return(_t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e)return 1;if(t=a?l:l*("desc"===n[s]?-1:1)}return t.index-e.index}(t,e,n)}))},Tt=function(t){this.model=t},Nt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.isNullable=!1,i.value=n,i.mutator=r,i}return bt(e,t),e.prototype.nullable=function(){return this.isNullable=!0,this},e.prototype.mutate=function(t,e){var n=this.mutator||this.model.mutators()[e];return n?n(t):t},e}(Tt),Pt=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.value=n,i}return bt(e,t),e.prototype.make=function(t,e,n){var r=t=void 0!==t?t:this.value;return"function"==typeof t&&(r=t()),this.mutate(r,n)},e}(Nt),Lt=function(t){function e(e){return t.call(this,e,null)||this}return bt(e,t),e.prototype.make=function(t,e,n){return"number"==typeof t?t:null},e}(Nt),Mt=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"string"==typeof t?t:null===t&&this.isNullable?t:t+""},e}(Nt),$t=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:null===t&&this.isNullable?t:0},e}(Nt),qt=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){if(void 0===t)return this.value;if("boolean"==typeof t)return t;if("string"==typeof t){if(0===t.length)return!1;var e=parseInt(t,0);return!!isNaN(e)||!!e}return"number"==typeof t?!!t:!(null!==t||!this.isNullable)&&t},e}(Nt),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bt(e,t),e.prototype.getRelation=function(t,e,n){var r=t.newQuery(e);return n.forEach((function(t){t(r)})),r},e.prototype.getKeys=function(t,e){return t.reduce((function(t,n){return null===n[e]||void 0===n[e]?t:(t.push(n[e]),t)}),[])},e.prototype.mapSingleRelations=function(t,e){return t.reduce((function(t,n){return t[n[e]]=n,t}),{})},e.prototype.mapManyRelations=function(t,e){return t.reduce((function(t,n){var r=n[e];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e.prototype.isOneRelation=function(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t},e.prototype.isManyRelation=function(t){return!(!Array.isArray(t)||t.length<1)},e.prototype.makeManyRelation=function(t,e){var n=this;return this.isManyRelation(t)?t.filter((function(t){return n.isOneRelation(t)})).map((function(t){return new e(t)})):[]},e}(Tt),It=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity];r&&r[t]&&void 0===r[t][this.foreignKey]&&(e[this.localKey]||(e[this.localKey]=e.$id),r[t][this.foreignKey]=e[this.localKey])},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.foreignKey]]=n,t}),{})},e}(Rt),Ft=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.one(this.parent)},e.prototype.attach=function(t,e,n){void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.parent(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.parent.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.ownerKey,this.getKeys(e,this.foreignKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.foreignKey],o=null!==e?i[e]:null;t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.ownerKey]]=n,t}),{})},e}(Rt),Dt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;Array.isArray(t)&&t.forEach((function(t){var i=n[r.related.entity];i&&i[t]&&void 0===i[t][r.foreignKey]&&(i[t][r.foreignKey]=e[r.localKey])}))},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||[]}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.foreignKey];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e}(Rt),Bt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.many(this.parent)},e.prototype.attach=function(t,e,n){0!==t.length&&void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.parent)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.parent.entity,r);this.addConstraintForHasManyBy(o,e);var a=this.mapSingleRelations(o.get(),this.ownerKey);e.forEach((function(t){var e=i.getRelatedRecords(a,t[i.foreignKey]);t[n]=e}))},e.prototype.addConstraintForHasManyBy=function(t,e){var n=this,r=e.reduce((function(t,e){return t.concat(e[n.foreignKey])}),[]);t.where(this.ownerKey,r)},e.prototype.getRelatedRecords=function(t,e){return e.reduce((function(e,n){var r=t[n];return r&&e.push(r),e}),[])},e}(Rt),zt=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.through=l.model.relation(r),l.firstKey=i,l.secondKey=o,l.localKey=a,l.secondLocalKey=s,l}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.through.entity);this.addEagerConstraintForThrough(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapThroughRelations(s,o);e.forEach((function(t){var e=l[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForThrough=function(t,e){t.where(this.firstKey,this.getKeys(e,this.localKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.where(this.secondKey,this.getKeys(e,this.secondLocalKey))},e.prototype.mapThroughRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.secondKey);return t.reduce((function(t,e){var i=e[n.firstKey];t[i]||(t[i]=[]);var o=r[e[n.secondLocalKey]];return t[i]=t[i].concat(o),t}),{})},e}(Rt),Ut=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.pivot=l.model.relation(r),l.foreignPivotKey=i,l.relatedPivotKey=o,l.parentKey=a,l.relatedKey=s,l}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e){t.whereFk(this.foreignPivotKey,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedPivotKey))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.foreignPivotKey];t[i]||(t[i]=[]);var o=r[e[n.relatedPivotKey]];return o&&(t[i]=t[i].concat(o)),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return this.pivot.primaryKey instanceof Array==0?e:(Ot(e[t.entity],(function(t){var i=t[n];void 0!==i&&0!==i.length&&r.createPivotRecord(e,t,i)})),e)},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=t[r.related.entity][n][r.relatedKey],l=s+"_"+a,c=t[r.pivot.entity]?t[r.pivot.entity][l]:{};t[r.pivot.entity]=_t({},t[r.pivot.entity],((i={})[l]=_t({},c,((o={$id:l})[r.foreignPivotKey]=a,o[r.relatedPivotKey]=s,o)),i))}))},e}(Rt),Ht=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.id=n,i.type=r,i}return bt(e,t),e.prototype.define=function(t){var e=this;return t.union((function(t,n){return n[e.type]}))},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){if(!this.isOneRelation(t))return null;var r=e[this.type],i=this.model.relation(r);return i?new i(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getTypes(e).reduce((function(e,n){var o=i.getRelation(t,n,r);return e[n]=i.mapSingleRelations(o.get(),"$id"),e}),{});e.forEach((function(t){var e=t[i.id],r=t[i.type],a=o[r][e];t[n]=a||null}))},e.prototype.getTypes=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.type];return!t.includes(r)&&t.push(r),t}),[])},e}(Rt),Kt=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return bt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity]&&n[this.related.entity][t];r&&(r[this.id]=r[this.id]||e.$id,r[this.type]=r[this.type]||this.model.entity)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphOne(o,e,t.entity);var a=this.mapSingleRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||null}))},e.prototype.addEagerConstraintForMorphOne=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(Rt),Wt=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;if(Array.isArray(t)){var i=n[this.related.entity];t.forEach((function(t){var n=i[t];n[r.id]=n[r.id]||e.$id,n[r.type]=n[r.type]||r.model.entity}))}},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphMany(o,e,t.entity);var a=this.mapManyRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForMorphMany=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(Rt),Vt=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,t.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedId))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.id];t[i]||(t[i]=[]);var o=r[e[n.relatedId]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Ot(e[t.entity],(function(i){var o=t.query().newQuery(r.pivot.entity).where(r.id,i[r.parentKey]).where(r.type,t.entity).get().map((function(t){return t[r.parentKey]})),a=(i[n]||[]).filter((function(t){return!o.includes(t)}));Array.isArray(a)&&0!==a.length&&r.createPivotRecord(t,e,i,a)})),e},e.prototype.createPivotRecord=function(t,e,n,r){var i=this;r.forEach((function(r){var o,a,s=n[i.parentKey],l=e[i.related.entity][r][i.relatedKey],c=s+"_"+r+"_"+t.entity;e[i.pivot.entity]=_t({},e[i.pivot.entity],((o={})[c]=((a={$id:c})[i.relatedId]=l,a[i.id]=s,a[i.type]=t.entity,a),o))}))},e}(Rt),Gt=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,this.related.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.relatedId,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.id))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.relatedId];t[i]||(t[i]=[]);var o=r[e[n.id]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Ot(e[t.entity],(function(t){var i=t[n];Array.isArray(i)&&r.createPivotRecord(e,t,i)})),e},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=n+"_"+a+"_"+r.related.entity;t[r.pivot.entity]=_t({},t[r.pivot.entity],((i={})[s]=((o={$id:s})[r.relatedId]=a,o[r.id]=n,o[r.type]=r.related.entity,o),i))}))},e}(Rt),Zt=function(){function t(){}return t.serialize=function(t){var e=this,n=t.$fields();return Object.keys(n).reduce((function(n,r){var i=t[r];return n[r]=e.serializeValue(i),n}),{})},t.serializeValue=function(t){return t instanceof Xt?this.serializeItem(t):Array.isArray(t)?this.serializeCollection(t):t},t.serializeItem=function(t){return t.$toJson()},t.serializeCollection=function(t){return t.map((function(t){return t instanceof Xt?t.$toJson():t}))},t}(),Yt=function(){function t(){}return t.set=function(){this.value=""+this.prefix+this.count},t.get=function(){return this.value},t.increment=function(){return this.count++,this.set(),this.get()},t.count=0,t.prefix="_no_key_",t.value="",t}(),Xt=function(){function t(t){this.$id=null,this.$fill(t)}return t.fields=function(){return{}},t.getFields=function(){return this.cachedFields?this.cachedFields:(this.cachedFields=this.fields(),this.cachedFields)},t.attr=function(t,e){return new Pt(this,t,e)},t.string=function(t,e){return new Mt(this,t,e)},t.number=function(t,e){return new $t(this,t,e)},t.boolean=function(t,e){return new qt(this,t,e)},t.increment=function(){return new Lt(this)},t.hasOne=function(t,e,n){return new It(this,t,e,this.localKey(n))},t.belongsTo=function(t,e,n){return new Ft(this,t,e,this.relation(t).localKey(n))},t.hasMany=function(t,e,n){return new Dt(this,t,e,this.localKey(n))},t.hasManyBy=function(t,e,n){return new Bt(this,t,e,this.relation(t).localKey(n))},t.hasManyThrough=function(t,e,n,r,i,o){return new zt(this,t,e,n,r,this.localKey(i),this.relation(e).localKey(o))},t.belongsToMany=function(t,e,n,r,i,o){return new Ut(this,t,e,n,r,this.localKey(i),this.relation(t).localKey(o))},t.morphTo=function(t,e){return new Ht(this,t,e)},t.morphOne=function(t,e,n,r){return new Kt(this,t,e,n,this.localKey(r))},t.morphMany=function(t,e,n,r){return new Wt(this,t,e,n,this.localKey(r))},t.morphToMany=function(t,e,n,r,i,o,a){return new Vt(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.morphedByMany=function(t,e,n,r,i,o,a){return new Gt(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.mutators=function(){return{}},t.database=function(){return yt.database},t.store=function(){return this.database().store},t.namespace=function(t){return this.database().namespace+"/"+this.entity+"/"+t},t.getters=function(t){return this.store().getters[this.namespace(t)]},t.dispatch=function(t,e){return this.store().dispatch(this.namespace(t),e)},t.commit=function(t){this.store().commit(this.database().namespace+"/$mutate",{entity:this.entity,callback:t})},t.all=function(){return this.getters("all")()},t.find=function(t){return this.getters("find")(t)},t.findIn=function(t){return this.getters("findIn")(t)},t.query=function(){return this.getters("query")()},t.new=function(){return this.dispatch("new")},t.create=function(t){return this.dispatch("create",t)},t.insert=function(t){return this.dispatch("insert",t)},t.update=function(t){return this.dispatch("update",t)},t.insertOrUpdate=function(t){return this.dispatch("insertOrUpdate",t)},t.delete=function(t){return this.dispatch("delete",t)},t.deleteAll=function(){return this.dispatch("deleteAll")},t.id=function(t){var e=this.primaryKey;return"string"==typeof e?t[e]:e.map((function(e){return t[e]||Yt.increment()})).join("_")},t.localKey=function(t){return t||("string"==typeof this.primaryKey?this.primaryKey:"id")},t.relation=function(t){return"string"!=typeof t?t:this.database().model(t)},t.getAttributeClass=function(t){switch(t){case"increment":return Lt;default:throw Error('The attribute name "'+t+"\" doesn't exist.")}},t.getFieldsByAttribute=function(t){var e=this.getAttributeClass(t),n=this.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof e&&(t[r]=i),t}),{})},t.getIncrementFields=function(){return this.getFieldsByAttribute("increment")},t.hasIncrementFields=function(){return Object.keys(this.getIncrementFields()).length>0},t.pivotFields=function(){var t=[];return Ot(this.fields(),(function(e,n){var r;(e instanceof Ut||e instanceof Vt||e instanceof Gt)&&t.push(((r={})[n]=e,r))})),t},t.hasPivotFields=function(){return this.pivotFields().length>0},t.hydrate=function(t){return new this(t).$toJson()},t.prototype.$self=function(){return this.constructor},t.prototype.$fields=function(){return this.$self().getFields()},t.prototype.$store=function(){return this.$self().store()},t.prototype.$namespace=function(t){return this.$self().namespace(t)},t.prototype.$getters=function(t){return this.$self().getters(t)},t.prototype.$dispatch=function(t,e){return wt(this,void 0,void 0,(function(){return xt(this,(function(n){return[2,this.$self().dispatch(t,e)]}))}))},t.prototype.$all=function(){return this.$getters("all")()},t.prototype.$find=function(t){return this.$getters("find")(t)},t.prototype.$findIn=function(t){return this.$getters("findIn")(t)},t.prototype.$query=function(){return this.$getters("query")()},t.prototype.$create=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("create",t)]}))}))},t.prototype.$insert=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("insert",t)]}))}))},t.prototype.$update=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return Array.isArray(t)?[2,this.$dispatch("update",t)]:void 0!==t.where?[2,this.$dispatch("update",t)]:void 0===this.$self().id(t)?[2,this.$dispatch("update",{where:this.$id,data:t})]:[2,this.$dispatch("update",t)]}))}))},t.prototype.$insertOrUpdate=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("insertOrUpdate",t)]}))}))},t.prototype.$save=function(){return wt(this,void 0,void 0,(function(){var t,e,n,r=this;return xt(this,(function(i){switch(i.label){case 0:return t=this.$self().getFields(),e=Object.keys(t).reduce((function(e,n){return t[n]instanceof Nt&&(e[n]=r[n]),e}),{}),[4,this.$dispatch("insertOrUpdate",{data:e})];case 1:return n=i.sent(),this.$fill(n[this.$self().entity][0]),[2,this]}}))}))},t.prototype.$delete=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return t?[2,this.$dispatch("delete",t)]:null===this.$id?[2,null]:[2,this.$dispatch("delete",this.$id)]}))}))},t.prototype.$deleteAll=function(){return wt(this,void 0,void 0,(function(){return xt(this,(function(t){return[2,this.$dispatch("deleteAll")]}))}))},t.prototype.$fill=function(t){var e=this,n=t||{},r=this.$fields();Object.keys(r).forEach((function(t){var i=r[t],o=n[t];e[t]=i.make(o,n,t)})),void 0!==n.$id&&(this.$id=n.$id)},t.prototype.$toJson=function(){return Zt.serialize(this)},t.prototype.toJSON=function(){return this.$toJson()},t.primaryKey="id",t.state={},t}();function Jt(t,e){for(var n=0;n1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]}(t),ue(e).map((function(e,s){return i(e,n,r,t,o,a)}))},de=function(t){function e(){return t.apply(this,arguments)||this}ne(e,t);var n=e.prototype;return n.normalize=function(t,e,n,r,i,o){var a=this;return ue(t).map((function(t,s){return a.normalizeValue(t,e,n,r,i,o)})).filter((function(t){return null!=t}))},n.denormalize=function(t,e){var n=this;return t&&t.map?t.map((function(t){return n.denormalizeValue(t,e)})):t},e}(se),pe=function(t,e,n,r,i,o,a){var s=ee({},e);return Object.keys(t).forEach((function(n){var r=t[n],l=i(e[n],e,n,r,o,a);null==l?delete s[n]:s[n]=l})),s},he=function t(e,n,r,i,o,a){return"object"==typeof e&&e?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(e,n,r,t,o,a):(Array.isArray(i)?fe:pe)(i,e,n,r,t,o,a):e},me={Array:de,Entity:ae,Object:function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var r,i=t[n];return ee({},e,((r={})[n]=i,r))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t.withAllRecursive(e-1)}))},t.setEagerLoad=function(t,e,n){void 0===n&&(n=null),t.load[e]||(t.load[e]=[]),n&&t.load[e].push(n)},t.parseWithRelations=function(t,e,n){var r=this,i=e[0];i.split("|").forEach((function(i){1!==e.length?r.setEagerLoad(t,i):r.setEagerLoad(t,i,n)})),1!==e.length&&(e.shift(),this.addNestedWiths(t,i,e,n))},t.addNestedWiths=function(t,e,n,r){this.setEagerLoad(t,e,(function(t){t.with(n.join("."),r)}))},t.eagerLoadRelations=function(t,e){var n=t.model.getFields();for(var r in t.load){var i=t.load[r],o=n[r];o instanceof Rt&&o.load(t,e,r,i)}},t}(),Ae=function(){function t(){}return t.has=function(t,e,n,r){this.setHas(t,e,"exists",n,r)},t.hasNot=function(t,e,n,r){this.setHas(t,e,"doesntExist",n,r)},t.whereHas=function(t,e,n){this.setHas(t,e,"exists",void 0,void 0,n)},t.whereHasNot=function(t,e,n){this.setHas(t,e,"doesntExist",void 0,void 0,n)},t.setHas=function(t,e,n,r,i,o){void 0===r&&(r=">="),void 0===i&&(i=1),void 0===o&&(o=null),"number"!=typeof r?t.have.push({relation:e,type:n,operator:r,count:i,constraint:o}):t.have.push({relation:e,type:n,operator:">=",count:r,constraint:o})},t.applyConstraints=function(t){if(0!==t.have.length){var e=t.newQuery();this.addHasWhereConstraints(t,e),this.addHasConstraints(t,e.get())}},t.addHasWhereConstraints=function(t,e){t.have.forEach((function(t){e.with(t.relation,t.constraint)}))},t.addHasConstraints=function(t,e){var n=this.getComparators(t),r=[];e.forEach((function(t){n.every((function(e){return e(t)}))&&r.push(t.$id)})),t.whereIdIn(r)},t.getComparators=function(t){var e=this;return t.have.map((function(t){return e.getComparator(t)}))},t.getComparator=function(t){var e=this,n=this.getCountComparator(t.operator);return function(r){var i=e.getRelationshipCount(r[t.relation]),o=n(i,t.count);return"exists"===t.type?o:!o}},t.getRelationshipCount=function(t){return Array.isArray(t)?t.length:t?1:0},t.getCountComparator=function(t){switch(t){case"=":return function(t,e){return t===e};case">":return function(t,e){return t>e};case">=":return function(t,e){return t>=e};case"<":return function(t,e){return t>0&&t0&&t<=e};default:return function(t,e){return t===e}}},t}(),Se=function(){function t(t){this.indexToBeDeleted=[],this.query=t}return t.on=function(t,e,n){void 0===n&&(n=!1);var r=this.lastHookId+1;return this.lastHookId=r,this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push({callback:e,once:n,uid:r}),r},t.off=function(t){var e=this,n=!1;return Object.keys(this.hooks).some((function(r){var i=e.hooks[r],o=i.findIndex((function(e){return e.uid===t}));return-1!==o&&(i.splice(o,1),n=!0),n})),n},t.prototype.self=function(){return this.constructor},t.prototype.getHook=function(t){return this.query.model[t]||null},t.prototype.getGlobalHook=function(t){return this.self().hooks[t]||null},t.prototype.has=function(t){return!!this.getHook(t)||!!this.getGlobalHook(t)},t.prototype.executeSelectHook=function(t,e){return this.has(t)?(e=this.executeLocalSelectHook(t,e),e=this.executeGlobalSelectHook(t,e)):e},t.prototype.executeLocalSelectHook=function(t,e){var n=this.getHook(t);return n?n(e,this.query.entity):e},t.prototype.executeGlobalSelectHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(!r)return e;var i=[];return r.forEach((function(t,r){var o=t.callback,a=t.once;e=o.call(n.query,e,n.query.entity),a&&i.push(r)})),i.reverse().forEach((function(t){r.splice(t,1)})),e},t.prototype.executeMutationHookOnRecords=function(t,e){var n=this;this.has(t)&&(Object.keys(e).forEach((function(r){!1===n.executeMutationHook(t,e[r])&&delete e[r]})),this.removeGlobalHook(t))},t.prototype.executeMutationHook=function(t,e){return!1!==this.executeLocalMutationHook(t,e)&&!1!==this.executeGlobalMutationHook(t,e)&&void 0},t.prototype.executeLocalMutationHook=function(t,e){var n=this.getHook(t);if(n)return n(e,this.query.entity)},t.prototype.executeGlobalMutationHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(r){var i=[];return r.forEach((function(t,r){i.push(t.callback.call(n.query,e,n.query.entity)),t.once&&n.indexToBeDeleted.push(r)})),!i.includes(!1)&&void 0}},t.prototype.removeGlobalHook=function(t){var e=this.getGlobalHook(t);e&&this.indexToBeDeleted.reverse().forEach((function(t){e.splice(t,1)}))},t.hooks={},t.lastHookId=0,t}(),je=function(){function t(t,e){this.idFilter=null,this.cancelIdFilter=!1,this.joinedIdFilter=null,this.wheres=[],this.have=[],this.orders=[],this.offsetNumber=0,this.limitNumber=Math.pow(2,53)-1,this.load={},this.rootState=t,this.state=t[e],this.entity=e,this.model=this.getModel(e),this.module=this.getModule(e),this.hook=new Se(this)}return t.database=function(){return yt.database},t.getModel=function(t){return this.database().model(t)},t.getModels=function(){return this.database().models()},t.getModule=function(t){return this.database().module(t)},t.getModules=function(){return this.database().modules()},t.deleteAll=function(t){var e=this,n=this.getModels();Ot(n,(function(n,r){t[r]&&new e(t,r).deleteAll()}))},t.on=function(t,e,n){return Se.on(t,e,n)},t.off=function(t){return Se.off(t)},t.prototype.self=function(){return this.constructor},t.prototype.newQuery=function(e){return e=e||this.entity,new t(this.rootState,e)},t.prototype.database=function(){return this.self().database()},t.prototype.getModel=function(t){var e=t||this.entity;return this.self().getModel(e)},t.prototype.getModels=function(){return this.self().getModels()},t.prototype.getModule=function(t){var e=t||this.entity;return this.self().getModule(e)},t.prototype.getModules=function(){return this.self().getModules()},t.prototype.all=function(){return this.get()},t.prototype.find=function(t){return this.item(this.state.data[t])},t.prototype.findIn=function(t){var e=this;return t.map((function(t){return e.state.data[t]})).filter((function(t){return t}))},t.prototype.get=function(){var t=this.select();return this.collect(t)},t.prototype.first=function(){var t=this.select();return this.item(t[0])},t.prototype.last=function(){var t=this.select();return this.item(t[t.length-1])},t.prototype.where=function(t,e){return this.isIdfilterable(t)&&this.setIdFilter(e),this.wheres.push({field:t,value:e,boolean:"and"}),this},t.prototype.orWhere=function(t,e){return this.cancelIdFilter=!0,this.wheres.push({field:t,value:e,boolean:"or"}),this},t.prototype.whereId=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereIdIn=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereFk=function(t,e){var n=Array.isArray(e)?e:[e];return t===this.model.primaryKey?(this.setJoinedIdFilter(n),this):(this.where(t,n),this)},t.prototype.isIdfilterable=function(t){return t===this.model.primaryKey&&!this.cancelIdFilter},t.prototype.setIdFilter=function(t){var e=this,n=Array.isArray(t)?t:[t];null!==this.idFilter?this.idFilter=new Set(n.filter((function(t){return e.idFilter.has(t)}))):this.idFilter=new Set(n)},t.prototype.setJoinedIdFilter=function(t){var e=this;null!==this.joinedIdFilter?this.joinedIdFilter=new Set(t.filter((function(t){return e.joinedIdFilter.has(t)}))):this.joinedIdFilter=new Set(t)},t.prototype.orderBy=function(t,e){return void 0===e&&(e="asc"),this.orders.push({field:t,direction:e}),this},t.prototype.offset=function(t){return this.offsetNumber=t,this},t.prototype.limit=function(t){return this.limitNumber=t,this},t.prototype.with=function(t,e){return void 0===e&&(e=null),Ee.with(this,t,e),this},t.prototype.withAll=function(){return Ee.withAll(this),this},t.prototype.withAllRecursive=function(t){return void 0===t&&(t=3),Ee.withAllRecursive(this,t),this},t.prototype.has=function(t,e,n){return Ae.has(this,t,e,n),this},t.prototype.hasNot=function(t,e,n){return Ae.hasNot(this,t,e,n),this},t.prototype.whereHas=function(t,e){return Ae.whereHas(this,t,e),this},t.prototype.whereHasNot=function(t,e){return Ae.whereHasNot(this,t,e),this},t.prototype.records=function(){var t=this;return this.finalizeIdFilter(),this.getIdsToLookup().map((function(e){var n=t.state.data[e];return n instanceof Xt?n:t.hydrate(n)}))},t.prototype.finalizeIdFilter=function(){this.cancelIdFilter&&null!==this.idFilter&&(this.where(this.model.primaryKey,Array.from(this.idFilter.values())),this.idFilter=null)},t.prototype.getIdsToLookup=function(){var t=this;return this.idFilter&&this.joinedIdFilter?Array.from(this.idFilter.values()).filter((function(e){return t.joinedIdFilter.has(e)})):this.idFilter||this.joinedIdFilter?Array.from((this.idFilter||this.joinedIdFilter).values()):Object.keys(this.state.data)},t.prototype.select=function(){Ae.applyConstraints(this);var t=this.records();return t=this.hook.executeSelectHook("beforeSelect",t),t=this.filterWhere(t),t=this.hook.executeSelectHook("afterWhere",t),t=this.filterOrderBy(t),t=this.hook.executeSelectHook("afterOrderBy",t),t=this.filterLimit(t),this.hook.executeSelectHook("afterLimit",t)},t.prototype.filterWhere=function(t){return Oe.where(this,t)},t.prototype.filterOrderBy=function(t){return Oe.orderBy(this,t)},t.prototype.filterLimit=function(t){return Oe.limit(this,t)},t.prototype.count=function(){return this.get().length},t.prototype.max=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.max.apply(Math,e)},t.prototype.min=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.min.apply(Math,e)},t.prototype.sum=function(t){return this.get().reduce((function(e,n){return"number"==typeof n[t]&&(e+=n[t]),e}),0)},t.prototype.item=function(t){if(!t)return null;if(Object.keys(this.load).length>0){t=new this.model(t);var e=this.hook.executeSelectHook("beforeRelations",[t]);t=e[0],Ee.eagerLoadRelations(this,[t]),t=(e=this.hook.executeSelectHook("afterRelations",[t]))[0]}return t},t.prototype.collect=function(t){var e=this;return t.length<1?[]:(Object.keys(this.load).length>0&&(t=t.map((function(t){return new e.model(t)})),t=this.hook.executeSelectHook("beforeRelations",t),Ee.eagerLoadRelations(this,t),t=this.hook.executeSelectHook("afterRelations",t)),t)},t.prototype.new=function(){var t=(new this.model).$toJson();return this.insert(t,{})[this.entity][0]},t.prototype.create=function(t,e){return this.persist(t,"create",e)},t.prototype.createMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=n})),this.map(n)},t.prototype.insert=function(t,e){return this.persist(t,"insert",e)},t.prototype.insertMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=_t({},e.state.data,n)})),this.map(n)},t.prototype.update=function(t,e,n){if(Array.isArray(t))return this.persist(t,"update",n);if("function"==typeof t){if(!e)throw new Error("You must specify `where` to update records by specifying `data` as a closure.");return"function"==typeof e?this.updateByCondition(t,e):this.updateById(t,e)}if("function"==typeof e)return this.updateByCondition(t,e);if(!e)return this.persist(t,"update",n);if(Array.isArray(this.model.primaryKey))throw new Error("\n You can't specify `where` value as `string` or `number` when you\n have a composite key defined in your model. Please include composite\n keys to the `data` fields.\n ");return this.updateById(t,e)},t.prototype.updateMany=function(t){var e=this.combine(t);return this.commitUpdate(e)},t.prototype.updateById=function(t,e){var n;e="number"==typeof e?e.toString():e;var r=this.state.data[e];if(!r)return null;var i=((n={})[e]=this.processUpdate(t,r),n);return this.commitUpdate(i),i[e]},t.prototype.updateByCondition=function(t,e){var n=this,r=Object.keys(this.state.data).reduce((function(r,i){var o=n.state.data[i];return e(o)?(r[i]=n.processUpdate(t,o),r):r}),{});return this.commitUpdate(r)},t.prototype.processUpdate=function(t,e){return"function"==typeof t?(t(e),e):this.hydrate(_t({},e,t))},t.prototype.commitUpdate=function(t){var e=this;return t=this.updateIndexes(t),this.commit("update",t,(function(){e.state.data=_t({},e.state.data,t)})),this.map(t)},t.prototype.updateIndexes=function(t){var e=this;return Object.keys(t).reduce((function(t,n){var r=t[n],i=String(e.model.id(r));return n!==i&&(r.$id=i,t[i]=r,delete t[n]),t}),t)},t.prototype.insertOrUpdate=function(t,e){return this.persist(t,"insertOrUpdate",e)},t.prototype.insertOrUpdateMany=function(t){var e=this,n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];e.state.data[i]?r[i]=o:n[i]=o})),this.insertMany(n).concat(this.updateMany(r))},t.prototype.persist=function(t,e,n){var r=this;return t=this.normalize(t),Ct(t)?("create"===e&&(this.state.data={}),{}):Object.keys(t).reduce((function(i,o){var a=r.newQuery(o)[r.getPersistMethod(o,e,n)+"Many"](t[o]);return a.length>0&&(i[o]=a),i}),{})},t.prototype.getPersistMethod=function(t,e,n){return n.create&&n.create.includes(t)?"create":n.insert&&n.insert.includes(t)?"insert":n.update&&n.update.includes(t)?"update":n.insertOrUpdate&&n.insertOrUpdate.includes(t)?"insertOrUpdate":e},t.prototype.delete=function(t){return"function"==typeof t?this.deleteByCondition(t):this.deleteById(t)},t.prototype.deleteById=function(t){var e;t="number"==typeof t?t.toString():t;var n=this.state.data[t];if(!n)return null;var r=((e={})[t]=n,e);return this.commitDelete(r)[0]},t.prototype.deleteByCondition=function(t){var e=this,n=Object.keys(this.state.data).reduce((function(n,r){var i=e.state.data[r];return t(i)?(n[r]=i,n):n}),{});return this.commitDelete(n)},t.prototype.deleteAll=function(){var t=this.state.data;this.commitDelete(t)},t.prototype.commitDelete=function(t){var e=this;return this.commit("delete",t,(function(){var n=Object.keys(t);e.state.data=Object.keys(e.state.data).reduce((function(t,r){return n.includes(r)||(t[r]=e.state.data[r]),t}),{})})),this.map(t)},t.prototype.normalize=function(t){return we.normalize(this,t)},t.prototype.hydrate=function(t){return new(0,this.model)(t)},t.prototype.hydrateMany=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=t[r];return n[r]=e.hydrate(i),n}),{})},t.prototype.combine=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=e.state.data[r];if(!i)return n;var o=t[r];return n[r]=e.hydrate(_t({},i,o)),n}),{})},t.prototype.map=function(t){return Object.keys(t).map((function(e){return t[e]}))},t.prototype.commit=function(t,e,n){var r=""+t.charAt(0).toUpperCase()+t.slice(1);this.hook.executeMutationHookOnRecords("before"+r,e),n(),this.hook.executeMutationHookOnRecords("after"+r,e)},t}(),Te={query:function(t,e,n,r){return function(){return r[t.$connection+"/query"](t.$name)}},all:function(t,e,n,r){return function(){return r[t.$connection+"/all"](t.$name)}},find:function(t,e,n,r){return function(e){return r[t.$connection+"/find"](t.$name,e)}},findIn:function(t,e,n,r){return function(e){return r[t.$connection+"/findIn"](t.$name,e)}}},Ne={new:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/new",{entity:n},{root:!0})},create:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/create",_t({},e,{entity:r}),{root:!0})},insert:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insert",_t({},e,{entity:r}),{root:!0})},update:function(t,e){var n=t.state,r=n.$name;return Array.isArray(e)?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):void 0===e.data?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):t.dispatch(n.$connection+"/update",_t({entity:r},e),{root:!0})},insertOrUpdate:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insertOrUpdate",_t({entity:r},e),{root:!0})},delete:function(t,e){var n=t.state,r=n.$name,i="object"==typeof e?e.where:e;return t.dispatch(n.$connection+"/delete",{entity:r,where:i},{root:!0})},deleteAll:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/deleteAll",{entity:n},{root:!0})}},Pe={query:function(t){return function(e){return new je(t,e)}},all:function(t){return function(e){return new je(t,e).all()}},find:function(t){return function(e,n){return new je(t,e).find(n)}},findIn:function(t){return function(e,n){return new je(t,e).findIn(n)}}},Le={new:function(t,e){var n={data:{}};return t.commit("new",_t({},e,{result:n})),n.data},create:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("create",_t({},e,{result:n})),[2,n.data]}))}))},insert:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("insert",_t({},e,{result:n})),[2,n.data]}))}))},update:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("update",_t({},e,{result:n})),[2,n.data]}))}))},insertOrUpdate:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("insertOrUpdate",_t({},e,{result:n})),[2,n.data]}))}))},delete:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("delete",_t({},e,{result:n})),[2,n.data]}))}))},deleteAll:function(t,e){return wt(this,void 0,void 0,(function(){return xt(this,(function(n){return e&&e.entity?(t.commit("deleteAll",{entity:e.entity}),[2]):(t.commit("deleteAll"),[2])}))}))}},Me=function(){function t(){}return t.createPersistOptions=function(t){return{create:t.create,insert:t.insert,update:t.update,insertOrUpdate:t.insertOrUpdate}},t}(),$e={$mutate:function(t,e){e.callback(t[e.entity])},new:function(t,e){var n=e.entity;e.result.data=new je(t,n).new()},create:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).create(r,i)},insert:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).insert(r,i)},update:function(t,e){var n=e.entity,r=e.data,i=e.where||null,o=Me.createPersistOptions(e);e.result.data=new je(t,n).update(r,i,o)},insertOrUpdate:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).insertOrUpdate(r,i)},delete:function(t,e){var n=e.entity,r=e.where;e.result.data=new je(t,n).delete(r)},deleteAll:function(t,e){e&&e.entity?new je(t,e.entity).deleteAll():je.deleteAll(t)}},qe=function(){function t(){}return t.create=function(t){return function(e,n,r){var i=t.id(e);return null==i||""===i?Yt.get():i}},t}(),Re=function(){function t(){}return t.create=function(t){var e=this;return function(n,r,i){var o=e.getId(t,n);return _t({},n,{$id:o})}},t.getId=function(t,e){var n=t.id(e);return null==n||""===n?Yt.increment():n},t}(),Ie=function(){function t(t){var e=this;this.schemas={},this.model=t;var n=t.database().models();Object.keys(n).forEach((function(t){e.one(n[t])}))}return t.create=function(t){return new this(t).one()},t.prototype.one=function(t){if(t=t||this.model,this.schemas[t.entity])return this.schemas[t.entity];var e=new me.Entity(t.entity,{},{idAttribute:qe.create(t),processStrategy:Re.create(t)});this.schemas[t.entity]=e;var n=this.definition(t);return e.define(n),e},t.prototype.many=function(t){return new me.Array(this.one(t))},t.prototype.union=function(t){return new me.Union(this.schemas,t)},t.prototype.definition=function(t){var e=this,n=t.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof Rt&&(t[r]=i.define(e)),t}),{})},t}(),Fe=function(){function t(){}return t.create=function(t,e,n){var r={namespaced:!0,state:{$name:t},getters:Pe,actions:Le,mutations:$e,modules:{}};return this.createModules(r,t,e,n)},t.createModules=function(t,e,n,r){var i=this;return Object.keys(r).forEach((function(o){var a=n[o],s=r[o];t.modules[o]={namespaced:!0},t.modules[o].state=i.createState(e,o,a,s),t.getters[o]=function(t,e,n,r){return function(){return e.query(o)}},t.modules[o].getters=_t({},Te,s.getters),t.modules[o].actions=_t({},Ne,s.actions),t.modules[o].mutations=s.mutations||{}})),t},t.createState=function(t,e,n,r){var i="function"==typeof n.state?n.state():n.state,o="function"==typeof r.state?r.state():r.state;return _t({},i,o,{$connection:t,$name:e,data:{}})},t}(),De={axios:void 0,baseURL:"http://localhost:3000",url:"/",method:"get",access_token:"",headers:{"Content-Type":"application/json",Accept:"application/json"},data:{},timeout:0,withCredentials:!1,responseType:"json",responseEncoding:"utf8",validateStatus:function(t){return t>=200&&t<300},maxRedirects:5,socketPath:null,proxy:{},onRequest:function(t,e){return t},onResponse:function(t,e){return t.data},onUnauthorised:function(t){},onNotFound:function(t){},onServerError:function(t){},onGenericError:function(t){},onValidationError:function(t){},onError:function(t,e){var n=t.response,r={401:this.onUnauthorised,404:this.onNotFound,422:this.onValidationError,500:this.onServerError};return n&&n.status in r?r[n.status](t):this.onGenericError(t),Promise.reject(t)}},Be={database:new(function(){function t(){this.entities=[],this.schemas={}}return t.prototype.start=function(t,e){this.store=t,this.namespace=e,this.registerModules(),this.createSchema()},t.prototype.register=function(t,e){void 0===e&&(e={}),this.entities.push({name:t.entity,model:t,module:e})},t.prototype.model=function(t){return this.models()[t]},t.prototype.models=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.model,t}),{})},t.prototype.module=function(t){return this.modules()[t]},t.prototype.modules=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.module,t}),{})},t.prototype.registerModules=function(){var t=Fe.create(this.namespace,this.models(),this.modules());this.store.registerModule(this.namespace,t)},t.prototype.createSchema=function(){var t=this;this.entities.forEach((function(e){t.schemas[e.name]=Ie.create(e.model)}))},t}()),http:De},ze={getters:{loading:function(t){return t.loading},errors:function(t){return t.errors}},mutations:{onRequest:function(t){t.loading=!0,t.errors=[]},onError:function(t,e){t.loading=!1,t.errors=e.data},onSuccess:function(t){t.loading=!1,t.errors=[]}},state:{loading:!1,errors:[]}},Ue={http:De,methods:{$fetch:{name:"fetch",http:{url:"",method:"get"}},$get:{name:"get",http:{url:"/:id",method:"get"}},$create:{name:"create",alias:["insert"],http:{url:"",method:"post"}},$update:{name:"update",http:{url:"/:id",method:"put"}},$delete:{name:"delete",http:{url:"/:id",method:"delete"}}}},He=function(){function t(e,n){if(i()(this,t),this.components=e,this.options=u()({},Be,n),this.database=n.database,!n.database)throw new Error("database option is required to initialise!")}return a()(t,[{key:"getModelFromState",value:function(t){return d()(this.database.entities,{name:t.$name}).model}}],[{key:"setup",value:function(e,n){return this.instance=new t(e,n),this.instance}},{key:"getInstance",value:function(){return this.instance}}]),t}(),Ke=n(77),We=n.n(Ke),Ve=n(78),Ge=n.n(Ve),Ze=function(){function t(){i()(this,t)}return a()(t,null,[{key:"transformModule",value:function(t){return u()({},ze,t)}},{key:"transformModel",value:function(t){var e=He.getInstance();return Ue.http=u()({},Ue.http,e.options.http),t.methodConf=u()({},Ue,t.methodConf),t.methodConf.http.url="/"===t.methodConf.http.url?"/".concat(t.entity):t.methodConf.http.url,t.getFields=function(){return t.cachedFields||(t.cachedFields=u()({},{$id:t.attr(void 0),$isUpdating:t.boolean(!1),$updateErrors:t.attr([]),$isDeleting:t.boolean(!1),$deleteErrors:t.attr([])},t.fields())),t.cachedFields},t}},{key:"transformParams",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="".concat(e.methodConf.http.url).concat(e.methodConf.methods[t].http.url),i=l()(r.match(/(\/?)(\:)([A-z]*)/gm),(function(t){return t.replace("/","")}));return We()(i,(function(t){var e=Ge()(n.params,t.replace(":",""))?n.params[t.replace(":","")]:"";r=r.replace(t,e).replace("//","/")})),n.query&&(r+="?".concat(Object.keys(n.query).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n.query[t]))})).join("&"))),r}},{key:"getMethod",value:function(t,e,n){return e.methodConf.methods[t].http.method||n}}]),t}(),Ye=n(0),Xe=n.n(Ye),Je=n(3),Qe=n.n(Je),tn=n(7),en=n.n(tn),nn=n(8),rn=n.n(nn),on=n(9),an=n.n(on),sn=n(79),ln=n.n(sn),cn=function(){function t(e){var n=this;return i()(this,t),this.instance=e.axios||ln.a.create(e),this.setAuthentication(e.access_token),this.instance.interceptors.request.use((function(t){return e.onRequest(t,n.instance)}),(function(t){return e.onError(t,n.instance)})),this.instance.interceptors.response.use((function(t){return e.onResponse(t,n.instance)}),(function(t){return e.onError(t,n.instance)})),this.instance}return a()(t,[{key:"setAuthentication",value:function(t){if(t){var e="function"==typeof t?t():t;this.instance.defaults.headers.common.Authorization="Bearer ".concat(e)}}},{key:"head",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.head(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"get",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.get(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"post",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.post(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"patch",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.patch(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"put",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.put(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"delete",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.delete(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),un=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.commit,i=f.length>1&&void 0!==f[1]?f[1]:{},o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$fetch",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$fetch",a,"get"),u=l[c](s),this.onRequest(r),t.prev=9,t.t0=this,t.t1=r,t.t2=a,t.next=15,u;case 15:return t.t3=t.sent,t.next=18,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 18:t.next=23;break;case 20:t.prev=20,t.t4=t.catch(9),this.onError(r,t.t4);case 23:return t.abrupt("return",u);case 24:case"end":return t.stop()}}),t,this,[[9,20]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),fn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.commit,i=f.length>1&&void 0!==f[1]?f[1]:{},o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$get",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$get",a,"get"),u=l[c](s),this.onRequest(r),t.prev=9,t.t0=this,t.t1=r,t.t2=a,t.next=15,u;case 15:return t.t3=t.sent,t.next=18,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 18:t.next=23;break;case 20:t.prev=20,t.t4=t.catch(9),this.onError(r,t.t4);case 23:return t.abrupt("return",u);case 24:case"end":return t.stop()}}),t,this,[[9,20]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),dn=n(17),pn=n.n(dn),hn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state,r=e.commit,(i=f.length>1&&void 0!==f[1]?f[1]:{}).data&&"object"===pn()(i)){t.next=4;break}throw new TypeError("You must include a data object in the params to send a POST request",i);case 4:return o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$create",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$create",a,"post"),u=l[c](s,i.data),this.onRequest(r),t.prev=11,t.t0=this,t.t1=r,t.t2=a,t.next=17,u;case 17:return t.t3=t.sent,t.next=20,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 20:t.next=25;break;case 22:t.prev=22,t.t4=t.catch(11),this.onError(r,t.t4);case 25:return t.abrupt("return",u);case 26:case"end":return t.stop()}}),t,this,[[11,22]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),mn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state,e.commit,(r=u.length>1&&void 0!==u[1]?u[1]:{}).data&&"object"===pn()(r)){t.next=4;break}throw new TypeError("You must include a data object in the params to send a POST request",r);case 4:return i=He.getInstance(),o=i.getModelFromState(n),a=Ze.transformParams("$update",o,r),s=new cn(o.methodConf.http),l=Ze.getMethod("$update",o,"put"),c=s[l](a,r.data),t.next=12,this.onRequest(o,r);case 12:return t.prev=12,t.t0=this,t.t1=o,t.t2=r,t.next=18,c;case 18:return t.t3=t.sent,t.next=21,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 21:t.next=27;break;case 23:return t.prev=23,t.t4=t.catch(12),t.next=27,this.onError(o,r,t.t4);case 27:return t.abrupt("return",c);case 28:case"end":return t.stop()}}),t,this,[[12,23]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t,e){return t.update({where:e.params.id,data:{$isUpdating:!0,$updateErrors:[]}})}},{key:"onSuccess",value:function(t,e,n){return t.update({where:e.params.id||n.id,data:u()({},n,{$isUpdating:!1,$updateErrors:[]})})}},{key:"onError",value:function(t,e,n){return t.update({where:e.params.id,data:{$isUpdating:!1,$updateErrors:n}})}}]),e}(Ze),vn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,e.commit,r=u.length>1&&void 0!==u[1]?u[1]:{},i=He.getInstance(),o=i.getModelFromState(n),a=Ze.transformParams("$delete",o,r),s=new cn(o.methodConf.http),l=Ze.getMethod("$delete",o,"delete"),c=s[l](a),t.next=10,this.onRequest(o,r);case 10:return t.prev=10,t.t0=this,t.t1=o,t.t2=r,t.next=16,c;case 16:return t.t3=t.sent,t.next=19,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 19:t.next=25;break;case 21:return t.prev=21,t.t4=t.catch(10),t.next=25,this.onError(o,r,t.t4);case 25:return t.abrupt("return",c);case 26:case"end":return t.stop()}}),t,this,[[10,21]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t,e){return t.update({where:e.params.id,data:{$isDeleting:!0,$deleteErrors:[]}})}},{key:"onSuccess",value:function(t,e,n){return t.delete({where:e.params.id||n.id})}},{key:"onError",value:function(t,e,n){return t.update({where:e.params.id,data:{$isDeleting:!1,$deleteErrors:n}})}}]),e}(Ze),yn=function(){function t(e,n){i()(this,t),He.setup(e,n),this.setupActions(),this.setupModels()}return a()(t,[{key:"setupActions",value:function(){var t=He.getInstance();t.components.Actions.$fetch=un.call.bind(un),t.components.Actions.$get=fn.call.bind(fn),t.components.Actions.$create=hn.call.bind(hn),t.components.Actions.$update=mn.call.bind(mn),t.components.Actions.$delete=vn.call.bind(vn)}},{key:"setupModels",value:function(){var t=He.getInstance();l()(t.database.entities,(function(t){return t.module=Ze.transformModule(t.module),t.model=Ze.transformModel(t.model),t})),t.components.Model.$fetch=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$fetch",t)},t.components.Model.$get=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$get",t)},t.components.Model.$create=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$create",t)},t.components.Model.$update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$update",t)},t.components.Model.$delete=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$delete",t)}}}]),t}();n.d(e,"default",(function(){return gn}));var gn=function(){function t(){i()(this,t)}return a()(t,null,[{key:"install",value:function(t,e){return new yn(t,e)}}]),t}()}])}).call(this,n("yLpj"),n("8oxB"),n("tjlA").Buffer)},Wncm:function(t,e,n){"use strict";var r=n("IH57");n.n(r).a},Xhqo:function(t,e,n){"use strict";var r=n("hwdV").Buffer,i=n(2);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},XuX8:function(t,e,n){t.exports=n("INkZ")},Xwsg:function(t,e,n){var r=n("/pct");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;ne.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},u.prototype.write=function(t,e,n,r,i,o,a){return this._write(!0,t,e,n,r,i,o,a)},u.prototype.writeSync=function(t,e,n,r,i,o,a){return this._write(!1,t,e,n,r,i,o,a)},u.prototype._write=function(n,o,a,s,l,c,u,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==e.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=t.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=u,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return r.nextTick((function(){d._process(),d._after()})),this},u.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},u.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},u.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(t,n,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(t>=8&&t<=15,"invalid windowBits"),i(n>=-1&&n<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,t,r,o,a),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(t,n,r,i,l){switch(this.level=t,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=l,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=u}).call(this,n("tjlA").Buffer,n("8oxB"))},"aET+":function(t,e,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),c=null,u=0,f=[],d=n("9tPo");function p(t,e){for(var n=0;n=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=u++;n=c||(c=y(e)),r=x.bind(null,n,a,!1),i=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),m(t,e),e}(e),r=C.bind(null,n,e),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=k.bind(null,n),i=function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],i=0;i=1&&0===$[E];E--);if(A>E&&(A=E),0===E)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(O=1;O0&&(0===t||1!==E))return-1;for(q[1]=0,k=1;k<15;k++)q[k+1]=q[k]+$[k];for(C=0;C852||2===t&&N>592)return 1;for(;;){b=k-j,f[C]g?(_=R[I+f[C]],w=L[M+f[C]]):(_=96,w=0),p=1<>j)+(h-=p)]=b<<24|_<<16|w|0}while(0!==h);for(p=1<>=1;if(0!==p?(P&=p-1,P+=p):P=0,C++,0==--$[k]){if(k===E)break;k=e[n+f[C]]}if(k>A&&(P&v)!==m){for(0===j&&(j=A),y+=O,T=1<<(S=k-j);S+j852||2===t&&N>592)return 1;c[m=P&v]=A<<24|S<<16|y-u|0}}return 0!==P&&(c[y+P]=k-j<<24|64<<16|0),d.bits=A,0}},bXjK:function(t,e,n){!function(t){"use strict";t.defineOption("fullScreen",!1,(function(e,n,r){r==t.Init&&(r=!1),!r!=!n&&(n?function(t){var e=t.getWrapperElement();t.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:e.style.width,height:e.style.height},e.style.width="",e.style.height="auto",e.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",t.refresh()}(e):function(t){var e=t.getWrapperElement();e.className=e.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=t.state.fullScreenRestore;e.style.width=n.width,e.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),t.refresh()}(e))}))}(n("VrN/"))},dUo6:function(t,e,n){"use strict";var r=n("A8dI");n.n(r).a},"ddh+":function(t,e,n){"use strict";var r=n("Qi1A");n.n(r).a},dla9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\nhtml {\n scroll-behavior: smooth;\n}\n",""])},dlfb:function(t,e,n){"use strict";var r=n("8E+E");n.n(r).a},"eA/Y":function(t,e,n){"use strict";t.exports=o;var r=n("J78i"),i=n("Onz0");function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n("P7XM"),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},ewDg:function(t,e,n){!function(t){"use strict";function e(t){for(var e={},n=0;n*\/]/.test(n)?w(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):t.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(t.current().toLowerCase())&&(e.tokenize=C),w("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),w("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):t.match(/^\w+-/)?w("meta","meta"):void 0}function k(t){return function(e,n){for(var r,i=!1;null!=(r=e.next());){if(r==t&&!i){")"==t&&e.backUp(1);break}i=!i&&"\\"==r}return(r==t||!i&&")"!=t)&&(n.tokenize=null),w("string","string")}}function C(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=k(")"),w(null,"(")}function O(t,e,n){this.type=t,this.indent=e,this.prev=n}function E(t,e,n,r){return t.context=new O(n,e.indentation()+(!1===r?0:a),t.context),n}function A(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function S(t,e,n){return N[n.context.type](t,e,n)}function j(t,e,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return S(t,e,n)}function T(t){var e=t.current().toLowerCase();o=y.hasOwnProperty(e)?"atom":v.hasOwnProperty(e)?"keyword":"variable"}var N={top:function(t,e,n){if("{"==t)return E(n,e,"block");if("}"==t&&n.context.prev)return A(n);if(_&&/@component/i.test(t))return E(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return E(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return E(n,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return n.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return E(n,e,"at");if("hash"==t)o="builtin";else if("word"==t)o="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return E(n,e,"interpolation");if(":"==t)return"pseudo";if(g&&"("==t)return E(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return d.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o="string-2","maybeprop"):g?(o=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==t?"block":g||"hash"!=t&&"qualifier"!=t?N.top(t,e,n):(o="error","block")},maybeprop:function(t,e,n){return":"==t?E(n,e,"prop"):S(t,e,n)},prop:function(t,e,n){if(";"==t)return A(n);if("{"==t&&g)return E(n,e,"propBlock");if("}"==t||"{"==t)return j(t,e,n);if("("==t)return E(n,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)T(e);else if("interpolation"==t)return E(n,e,"interpolation")}else o+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?A(n):"word"==t?(o="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?j(t,e,n):")"==t?A(n):"("==t?E(n,e,"parens"):"interpolation"==t?E(n,e,"interpolation"):("word"==t&&T(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(o="variable-3",n.context.type):S(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&l.hasOwnProperty(e.current())?(o="tag",n.context.type):N.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return E(n,e,"atBlock_parens");if("}"==t||";"==t)return j(t,e,n);if("{"==t)return A(n)&&E(n,e,g?"block":"top");if("interpolation"==t)return E(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"string-2":y.hasOwnProperty(r)?"atom":v.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?j(t,e,n):"{"==t?A(n)&&E(n,e,g?"block":"top",!1):("word"==t&&(o="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?A(n):"{"==t||"}"==t?j(t,e,n,2):N.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?E(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):S(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,A(n)):"word"==t?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,n){return"word"==t?(o="variable","keyframes"):"{"==t?E(n,e,"top"):S(t,e,n)},at:function(t,e,n){return";"==t?A(n):"{"==t||"}"==t?j(t,e,n):("word"==t?o="tag":"hash"==t&&(o="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?A(n):"{"==t||";"==t?j(t,e,n):("word"==t?o="variable":"variable"!=t&&"("!=t&&")"!=t&&(o="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new O(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||x)(t,e);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(e.state=N[e.state](i,t,e)),o},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=e(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=e(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=e(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=e(u),d=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],p=e(d),h=e(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],y=e(v),g=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=e(g),_=n.concat(i).concat(a).concat(l).concat(u).concat(d).concat(v).concat(g);function w(t,e){for(var n,r=!1;null!=(n=t.next());){if(r&&"/"==n){e.tokenize=null;break}r="*"==n}return["comment","comment"]}t.registerHelper("hintWords","css",_),t.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:y,valueKeywords:b,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:y,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:y,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:y,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css",helperType:"gss"})}(n("VrN/"))},"f6e/":function(t,e){t.exports='\n \n'},fXKp:function(t,e,n){"use strict";var r=n("hwdV").Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=f,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},frGm:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,l,c,u,f,d,p,h,m,v,y,g,b,_,w,x,k,C,O,E;n=t.state,r=t.next_in,O=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<>>=_=b>>>24,h-=_,0===(_=b>>>16&255))E[o++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=m[(65535&b)+(p&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(_&=15)&&(h<_&&(p+=O[r++]<>>=_,h-=_),h<15&&(p+=O[r++]<>>=_=b>>>24,h-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=v[(65535&b)+(p&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,h<(_&=15)&&(p+=O[r++]<l){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=_,h-=_,x>(_=o-a)){if((_=x-_)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,C=d,0===f){if(k+=c-_,_2;)E[o++]=C[k++],E[o++]=C[k++],E[o++]=C[k++],w-=3;w&&(E[o++]=C[k++],w>1&&(E[o++]=C[k++]))}else{k=o-x;do{E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],w-=3}while(w>2);w&&(E[o++]=E[k++],w>1&&(E[o++]=E[k++]))}break}}break}}while(r>3,p&=(1<<(h-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r>1,u=-7,f=n?i-1:0,d=n?-1:1,p=t[e+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=h,a/=256,c-=8);t[n+p-h]|=128*m}},kd2E:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=t.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},kl5A:function(t,e,n){(function(e,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("yQtW"),l=n("43KI"),c=n("2Tiy"),u=s.IncomingMessage,f=s.readyStates;var d=t.exports=function(t){var n,r=this;l.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){r.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":o.vbArray&&t?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(d,l.Writable),d.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},d.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?c(e.concat(t._body)):o.blobConstructor?new r.Blob(t._body.map((function(t){return c(t)})),{type:(a["content-type"]||{}).value||""}):e.concat(t._body).toString());var l=[];if(Object.keys(a).forEach((function(t){var e=a[t].name,n=a[t].value;Array.isArray(n)?n.forEach((function(t){l.push([e,t])})):l.push([e,n])})),"fetch"===t._mode){var u=null;if(o.abortController){var d=new AbortController;u=d.signal,t._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(t._fetchTimer=r.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(t._opts.url,{method:t._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var p=t._xhr=new r.XMLHttpRequest;try{p.open(t._opts.method,t._opts.url,!0)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}"responseType"in p&&(p.responseType=t._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){t.emit("requestTimeout")}),l.forEach((function(t){p.setRequestHeader(t[0],t[1])})),t._response=null,p.onreadystatechange=function(){switch(p.readyState){case f.LOADING:case f.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(p.onprogress=function(){t._onXHRProgress()}),p.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{p.send(s)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}}}},d.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new u(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},d.prototype._write=function(t,e,n){this._body.push(t),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(this,t,e,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n("tjlA").Buffer,n("yLpj"),n("8oxB"))},kzlf:function(t,e,n){(function(e){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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 r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=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:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.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 r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},l={},c={},u={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=u.block:t&a.LEVEL&a.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}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"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(l[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.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))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.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)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!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,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(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},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i0&&n.next(o.retain-s)}for(var c=new l(r);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()&&i(c.ops[c.ops.length-1],p)){var m=new l(e.rest());return c.concat(m).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],e),u=a.iterator(this.ops),f=a.iterator(t.ops);return c.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,u.peekLength()),u.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),e);var s=u.next(n),l=f.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l).delete(n)}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&t(r,{},i)},l.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s.delete)continue;c.delete?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:y(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[c.default,s.default.Embed,u.default],e.bubbleFormats=y,e.BlockEmbed=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=_(e,r),this.container=this.options.container,null==this.container)return g.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=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 l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.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(l.default.events.EDITOR_CHANGE,(function(t){t===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),h.default.level(t)}},{key:"find",value:function(t){return t.__quill||u.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&g.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||g.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?u.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(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")).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 r=this,o=x(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],w.call(this,(function(){return r.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(u.default.query(t,u.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,l=x(t,e,n,r,o),c=i(l,4);return t=c[0],e=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,l=x(t,e,n,r,o),c=i(l,4);return t=c[0],e=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatText(t,e,a)}),o,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 r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.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=x(t,e),r=i(n,2);return t=r[0],e=r[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=x(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return w.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,l=x(t,0,n,r,o),c=i(l,4);return t=c[0],a=c[2],o=c[3],w.call(this,(function(){return s.editor.insertText(t,e,a)}),o,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 r=this,o=x(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],w.call(this,(function(){return r.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]:l.default.sources.API;return w.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=x(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.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]:l.default.sources.API;return w.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=m.default;var n=(0,p.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 r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?g.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,p.default)(!0,{},b.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 w(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===l.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=k(i,s,e):0!==r&&(i=k(i,n,r,e)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var c,u,f=[l.default.events.TEXT_CHANGE,s,o,e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,f)}return s}function x(t,e,n,i,o){var a={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||l.default.sources.API]}function k(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var c=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==l.default.sources.USER)})),u=i(c,2);o=u[0],s=u[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},e.expandConfig=_,e.overload=x,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=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}(t,e,n))};function s(t){return null==t}function l(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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.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){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(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=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,l=o-a+1,c=this.isolate(a,l),u=c.next;c.format(r,i),u instanceof e&&u.formatAt(0,t-a+n-l,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(u.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,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(s.default.create("text","\n")),o(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){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(l.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),m=i(h,2),y=m[0],g=m[1],b=(0,v.default)({},(0,f.bubbleFormats)(y));if(y instanceof d.default){var _=y.descendant(l.default.Leaf,g),w=i(_,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(w))}u=s.default.attributes.diff(b,u)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}o+=c}return Object.keys(u).forEach((function(n){e.scroll.formatAt(t,c,n,u[n])})),t+c}),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 a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof c.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{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 a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof l.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(l.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=_((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,o)}},{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 a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=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(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{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===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],l=o[1],u=0,f=new a.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+u-1).insert("\n"));var d=this.getContents(t,e+u).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{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,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(g)&&l.default.find(e[0].target)){var i=l.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),c=e[0].oldValue.replace(u.default.CONTENTS,""),d=(new a.default).insert(c),p=(new a.default).insert(i.value()),h=(new a.default).retain(s).concat(d.diff(p,n));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,m.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function _(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(l.default.sources.SILENT)}return i(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(l.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&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.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 i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var f=document.createRange();if(e>0){f.setStart(i,l);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),m=r(h,2);return i=m[0],l=m[1],f.setEnd(i,l),f.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(l0&&(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 d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),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 i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),l=s.offset(e.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(i,a)})),a=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(u(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!m(this.root,t.startContainer)||!t.collapsed&&!m(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){for(var e=t.node,n=t.offset;!(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;n=(e=e.lastChild)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],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),l=r(s,2),c=l[0],u=l[1],f=c.position(u,0!==n),d=r(f,2);a=d[0],u=d[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,i));s=r(l,1)[0]}if(null!=a&&null!=s){var c=t.getBoundingClientRect();n.topc.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.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]:l.default.sources.API;if("string"==typeof e&&(n=e,e=!1),d.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,u(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],c=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function m(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r: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,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),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 r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r: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,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.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(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(t){n=function(){}}try{r=Set}catch(t){r=function(){}}try{i=Promise}catch(t){i=function(){}}function o(a,l,c,u,f){"object"==typeof l&&(c=l.depth,u=l.prototype,f=l.includeNonEnumerable,l=l.circular);var d=[],p=[],h=void 0!==e;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var v,y;if("object"!=typeof c)return c;if(t(c,n))v=new n;else if(t(c,r))v=new r;else if(t(c,i))v=new i((function(t,e){c.then((function(e){t(a(e,m-1))}),(function(t){e(a(t,m-1))}))}));else if(o.__isArray(c))v=[];else if(o.__isRegExp(c))v=new RegExp(c.source,s(c)),c.lastIndex&&(v.lastIndex=c.lastIndex);else if(o.__isDate(c))v=new Date(c.getTime());else{if(h&&e.isBuffer(c))return v=e.allocUnsafe?e.allocUnsafe(c.length):new e(c.length),c.copy(v),v;t(c,Error)?v=Object.create(c):void 0===u?(y=Object.getPrototypeOf(c),v=Object.create(y)):(v=Object.create(u),y=u)}if(l){var g=d.indexOf(c);if(-1!=g)return p[g];d.push(c),p.push(v)}for(var b in t(c,n)&&c.forEach((function(t,e){var n=a(e,m-1),r=a(t,m-1);v.set(n,r)})),t(c,r)&&c.forEach((function(t){var e=a(t,m-1);v.add(e)})),c){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=a(c[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(b=0;b0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof u.default?null:p.children.head;s.moveChildren(p,v),s.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,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(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(h,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,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};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&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(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=s.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,d.default],e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=A(t);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var c=t.quill.getLine(l.index),u=i(c,2),d=u[0],p=u[1],h=t.quill.getLeaf(l.index),m=i(h,2),v=m[0],y=m[1],g=0===l.length?[v,y]:t.quill.getLeaf(l.index+l.length),b=i(g,2),_=b[0],w=b[1],x=v instanceof f.default.Text?v.value().slice(0,y):"",k=_ instanceof f.default.Text?_.value().slice(w):"",C={collapsed:0===l.length,empty:0===l.length&&d.length()<=1,format:t.quill.getFormat(l),offset:p,prefix:x,suffix:k};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==C.collapsed)return!1;if(null!=e.empty&&e.empty!==C.empty)return!1;if(null!=e.offset&&e.offset!==C.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==C.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=C.format[t]:!1===e.format[t]?null==C.format[t]:(0,s.default)(e.format[t],C.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(C.prefix)||null!=e.suffix&&!e.suffix.test(C.suffix)||!0===e.handler.call(t,l,C))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function _(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),c=this.quill.getFormat(t.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function x(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var l=this.quill.getLine(t.index+1),c=i(l,1)[0];if(c){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=u.default.attributes.diff(f,p)||{},o=c.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function k(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=u.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function C(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function O(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),m=l.domNode.textContent.slice(p,h).split("\n");c=0,m.forEach((function(e,i){t?(l.insertAt(p+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function E(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function A(t){if("string"==typeof t||"number"==typeof t)return A({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[g]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.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",d.default.sources.USER)}},"outdent backspace":{key:b.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",d.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new c.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,d.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,l.default)({},r.formats(),{list:"checked"}),s=(new c.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new c.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.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,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",d.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new c.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=s,e.sanitize=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n1&&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":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),a=y(o),s=y(n(16)),l=y(n(25)),c=y(n(24)),u=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),m=y(n(42)),v=y(n(23));function y(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),r.default.register(a.default,s.default,c.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.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 r.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 r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},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[r.DATA_KEY]&&delete this.domNode[r.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?r.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?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=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=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},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=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;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}(a(n(9)).default);function l(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(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)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&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,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=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;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(d.default);function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=k,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();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){for(var e=0,n=this.head;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);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+l-t)):n(r,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=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,s),n.attach(),n}return i(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,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(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}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(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,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},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=a.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=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.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 r=n.indexOf(t,e);return-1!==r&&r===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),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,f=t.length>e.length?e:t,d=u.indexOf(f);if(-1!=d)return c=[[r,u.substring(0,d)],[i,f],[r,u.substring(d+f.length)]],t.length>e.length&&(c[0][0]=c[2][0]=n),c;if(1==f.length)return[[n,t],[r,e]];var p=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,i,o,a,f]:null}var o,a,c,u,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;o=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(a=o[0],c=o[1],u=o[2],f=o[3]):(u=o[0],f=o[1],a=o[2],c=o[3]);var h=o[4];return[a,c,u,f,h]}(t,e);if(p){var h=p[0],m=p[1],v=p[2],y=p[3],g=p[4],b=o(h,v),_=o(m,y);return b.concat([[i,g]],_)}return function(t,e){for(var i=t.length,o=e.length,s=Math.ceil((i+o)/2),l=s,c=2*s,u=new Array(c),f=new Array(c),d=0;di)v+=2;else if(x>o)m+=2;else if(h&&(O=l+p-_)>=0&&O=k)return a(t,e,A,x)}}for(var C=-b+y;C<=b-g;C+=2){for(var O=l+C,E=(k=C==-b||C!=b&&f[O-1]i)g+=2;else if(E>o)y+=2;else if(!h&&(w=l+p-C)>=0&&w=(k=i-k))return a(t,e,A,x)}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-f),e=e.substring(0,e.length-f));return d&&h.unshift([i,d]),p&&h.push([i,p]),function t(e){e.push([i,""]);for(var o,a=0,c=0,u=0,f="",d="";a1?(0!==c&&0!==u&&(0!==(o=s(d,f))&&(a-c-u>0&&e[a-c-u-1][0]==i?e[a-c-u-1][1]+=d.substring(0,o):(e.splice(0,0,[i,d.substring(0,o)]),a++),d=d.substring(o),f=f.substring(o)),0!==(o=l(d,f))&&(e[a][1]=d.substring(d.length-o)+e[a][1],d=d.substring(0,d.length-o),f=f.substring(0,f.length-o))),0===c?e.splice(a-u,c+u,[r,d]):0===u?e.splice(a-c,c+u,[n,f]):e.splice(a-c-u,c+u,[n,f],[r,d]),a=a-c-u+(c?1:0)+(u?1:0)+1):0!==a&&e[a-1][0]==i?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,u=0,c=0,f="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(a=1;a0&&o.splice(a+2,0,[l[0],c]),u(o,a,3)}return t}(h,c)),h=function(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=2;a=55296&&s.charCodeAt(s.length-1)<=56319&&t[a-1][0]===n&&o(t[a-1][1])&&t[a][0]===r&&o(t[a][1])&&(e=!0,t[a-1][1]=t[a-2][1].slice(-1)+t[a-1][1],t[a][1]=t[a-2][1].slice(-1)+t[a][1],t[a-2][1]=t[a-2][1].slice(0,-1));var s;if(!e)return t;var l=[];for(a=0;a0&&l.push(t[a]);return l}(h)}function a(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function s(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n=0&&r>=e-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=A(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=l.default.query(t);if(null==n||"list-item"!==n.blotName||!j(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new s.default}]],C=[d.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),O=[d.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,y.FontStyle,g.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==$)&&r.addMatcher(o,a)})),r}return 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)}(e,t),o(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 +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,_({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],l=o[1],c=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[x]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,l);return j(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,c.default.sources.USER),e.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[x]=t[x]||[],t[x].push(s)}))}})),[e,n]}}]),e}(f.default);function A(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return A(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},_({},e,n),r.attributes))}),new s.default)}function S(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function j(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function N(t,e,n){return A(n,t,!0)}function P(t,e){var n=l.default.Attributor.Attribute.keys(t),r=l.default.Attributor.Class.keys(t),i=l.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=O[e])||n.attrName!==e&&n.keyName!==e||(n=O[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=A(e,o)),e}function L(t,e){var n=l.default.query(t);if(null==n)return e;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=A(e,n.blotName,n.formats(t)));return e}function M(t,e){return j(e,"\n")||(T(t)||e.length()>0&&t.nextSibling&&T(t.nextSibling))&&e.insert("\n"),e}function $(t,e){if(T(t)&&null!=t.nextElementSibling&&!j(e,"\n\n")){var n=t.offsetHeight+parseFloat(S(t).marginTop)+parseFloat(S(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function q(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(!S(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&T(t.parentNode)||null!=t.previousSibling&&T(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&T(t.parentNode)||null!=t.nextSibling&&T(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},e.default=E,e.matchAttributor=P,e.matchBlot=L,e.matchNewline=M,e.matchSpacing=$,e.matchText=q},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{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 r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=$(n(29)),i=n(36),o=n(38),a=n(64),s=$(n(65)),l=$(n(66)),c=n(67),u=$(c),f=n(37),d=n(26),p=n(39),h=n(40),m=$(n(56)),v=$(n(68)),y=$(n(27)),g=$(n(69)),b=$(n(70)),_=$(n(71)),w=$(n(72)),x=$(n(73)),k=n(13),C=$(k),O=$(n(74)),E=$(n(75)),A=$(n(57)),S=$(n(41)),j=$(n(28)),T=$(n(59)),N=$(n(60)),P=$(n(61)),L=$(n(108)),M=$(n(62));function $(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":v.default,"formats/link":y.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":O.default,"modules/syntax":E.default,"modules/toolbar":A.default,"themes/bubble":L.default,"themes/snow":M.default,"ui/icons":S.default,"ui/picker":j.default,"ui/icon-picker":N.default,"ui/color-picker":T.default,"ui/tooltip":P.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){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&&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=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 c.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}(s.default.Embed);u.blotName="image",u.tagName="IMG",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 c.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}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);f.className="ql-syntax";var d=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(t){function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return u(e,t),r(e,null,[{key:"register",value:function(){o.default.register(d,!0),o.default.register(f,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=d,e.default=p},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],l=r.quill.getIndex(s),u=Math.min(s.length()-1,e.index+e.length-l),f=r.quill.getBounds(new c.Range(l,u));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(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(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.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=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=y,e.default=v},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n("tjlA").Buffer)},lJCZ:function(t,e,n){(function(t){var r=n("kl5A"),i=n("yQtW"),o=n("U6jy"),a=n("jAWH"),s=n("CxY0"),l=e;l.request=function(e,n){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},l.get=function(t,e){var n=l.request(t,e);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n("yLpj"))},lm0R:function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},nm4c:function(t,e,n){"use strict";var r=n("vn/o"),i=n("yDR0"),o=n("7tol"),a=n("frGm"),s=n("aFNf"),l=0,c=1,u=2,f=4,d=5,p=6,h=0,m=1,v=2,y=-2,g=-3,b=-4,_=-5,w=8,x=1,k=2,C=3,O=4,E=5,A=6,S=7,j=8,T=9,N=10,P=11,L=12,M=13,$=14,q=15,R=16,I=17,F=18,D=19,B=20,z=21,U=22,H=23,K=24,W=25,V=26,G=27,Z=28,Y=29,X=30,J=31,Q=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,h):y}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):y}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?y:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):y}function lt(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==h&&(t.state=null),n):y}var ct,ut,ft=!0;function dt(t){if(ft){var e;for(ct=new r.Buf32(512),ut=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,ct,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,ut,0,t.work,{bits:5}),ft=!1}t.lencode=ct,t.lenbits=9,t.distcode=ut,t.distbits=5}function pt(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,At,2,0),st=0,lt=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=X;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=X;break}if(lt-=4,xt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=X;break}n.dmax=1<>8&1),512&n.flags&&(At[0]=255&st,At[1]=st>>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0,n.mode=C;case C:for(;lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,At[2]=st>>>16&255,At[3]=st>>>24&255,n.check=o(n.check,At,4,0)),st=0,lt=0,n.mode=O;case O:for(;lt<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(At[0]=255&st,At[1]=st>>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0,n.mode=E;case E:if(1024&n.flags){for(;lt<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0}else n.head&&(n.head.extra=null);n.mode=A;case A:if(1024&n.flags&&((ft=n.length)>ot&&(ft=ot),ft&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,ft,xt)),512&n.flags&&(n.check=o(n.check,tt,ft,nt)),ot-=ft,nt+=ft,n.length-=ft),n.length))break t;n.length=0,n.mode=S;case S:if(2048&n.flags){if(0===ot)break t;ft=0;do{xt=tt[nt+ft++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&ft>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=L;break;case N:for(;lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7<,lt-=7<,n.mode=G;break}for(;lt<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=$;break;case 1:if(dt(n),n.mode=B,e===p){st>>>=2,lt-=2;break t}break;case 2:n.mode=I;break;case 3:t.msg="invalid block type",n.mode=X}st>>>=2,lt-=2;break;case $:for(st>>>=7<,lt-=7<lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&st,st=0,lt=0,n.mode=q,e===p)break t;case q:n.mode=R;case R:if(ft=n.length){if(ft>ot&&(ft=ot),ft>at&&(ft=at),0===ft)break t;r.arraySet(et,tt,nt,ft,it),ot-=ft,nt+=ft,at-=ft,it+=ft,n.length-=ft;break}n.mode=L;break;case I:for(;lt<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,lt-=5,n.ndist=1+(31&st),st>>>=5,lt-=5,n.ncode=4+(15&st),st>>>=4,lt-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=F;case F:for(;n.have>>=3,lt-=3}for(;n.have<19;)n.lens[St[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ct={bits:n.lenbits},kt=s(l,n.lens,0,19,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,kt){t.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=D;case D:for(;n.have>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=vt,lt-=vt,n.lens[n.have++]=gt;else{if(16===gt){for(Ot=vt+2;lt>>=vt,lt-=vt,0===n.have){t.msg="invalid bit length repeat",n.mode=X;break}xt=n.lens[n.have-1],ft=3+(3&st),st>>>=2,lt-=2}else if(17===gt){for(Ot=vt+3;lt>>=vt)),st>>>=3,lt-=3}else{for(Ot=vt+7;lt>>=vt)),st>>>=7,lt-=7}if(n.have+ft>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=X;break}for(;ft--;)n.lens[n.have++]=xt}}if(n.mode===X)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Ct={bits:n.lenbits},kt=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,kt){t.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Ct={bits:n.distbits},kt=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ct),n.distbits=Ct.bits,kt){t.msg="invalid distances set",n.mode=X;break}if(n.mode=B,e===p)break t;case B:n.mode=z;case z:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=lt,a(t,ut),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,lt=n.bits,n.mode===L&&(n.back=-1);break}for(n.back=0;yt=(Et=n.lencode[st&(1<>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>bt)])>>>16&255,gt=65535&Et,!(bt+(vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=bt,lt-=bt,n.back+=bt}if(st>>>=vt,lt-=vt,n.back+=vt,n.length=gt,0===yt){n.mode=V;break}if(32&yt){n.back=-1,n.mode=L;break}if(64&yt){t.msg="invalid literal/length code",n.mode=X;break}n.extra=15&yt,n.mode=U;case U:if(n.extra){for(Ot=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;yt=(Et=n.distcode[st&(1<>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>bt)])>>>16&255,gt=65535&Et,!(bt+(vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=bt,lt-=bt,n.back+=bt}if(st>>>=vt,lt-=vt,n.back+=vt,64&yt){t.msg="invalid distance code",n.mode=X;break}n.offset=gt,n.extra=15&yt,n.mode=K;case K:if(n.extra){for(Ot=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=X;break}n.mode=W;case W:if(0===at)break t;if(ft=ut-at,n.offset>ft){if((ft=n.offset-ft)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=X;break}ft>n.wnext?(ft-=n.wnext,ht=n.wsize-ft):ht=n.wnext-ft,ft>n.length&&(ft=n.length),mt=n.window}else mt=et,ht=it-n.offset,ft=n.length;ft>at&&(ft=at),at-=ft,n.length-=ft;do{et[it++]=mt[ht++]}while(--ft);0===n.length&&(n.mode=z);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=z;break;case G:if(n.wrap){for(;lt<32;){if(0===ot)break t;ot--,st|=tt[nt++]<4?9:0)}function Q(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-R?t.strstart-(t.w_size-R):0,c=t.window,u=t.w_mask,f=t.prev,d=t.strstart+q,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=f[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,l,c,u,f,d,p,h=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-R)){i.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=h?r-h:0}while(--n);e=n=h;do{r=t.prev[--e],t.prev[e]=r>=h?r-h:0}while(--n);o+=h}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,f=t.strstart+t.lookahead,d=o,p=void 0,(p=c.avail_in)>d&&(p=d),n=0===p?0:(c.avail_in-=p,i.arraySet(u,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,u,p,f):2===c.state.wrap&&(c.adler=s(c.adler,u,p,f)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=$)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=$&&(t.ins_h=(t.ins_h<=$)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-$),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=$){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=$&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=$-1)),t.prev_length>=$&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-$,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-$),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>A||n!==E||r<8||r>15||e<0||e>9||a<0||a>k)return X(t,v);8===r&&(r=9);var l=new ct;return t.state=l,l.strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===c)return W;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return W;if(t.strstart-t.block_start>=t.w_size-R&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),W)})),new lt(4,4,8,4,at),new lt(4,5,16,8,at),new lt(4,6,32,32,at),new lt(4,4,16,16,st),new lt(8,16,32,32,st),new lt(8,16,128,128,st),new lt(8,32,128,256,st),new lt(32,128,258,1024,st),new lt(32,258,258,4096,st)],e.deflateInit=function(t,e){return dt(t,e,E,S,j,C)},e.deflateInit2=dt,e.deflateReset=ft,e.deflateResetKeep=ut,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?v:(t.state.gzhead=e,h):v},e.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||e>p||e<0)return t?X(t,v):v;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===K&&e!==d)return X(t,0===t.avail_out?g:v);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===F)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=D):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,Y),i.status=H);else{var y=E+(i.w_bits-8<<4)<<8;y|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(y|=I),y+=31-y%31,i.status=H,rt(i,y),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===D)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=B)}else i.status=B;if(i.status===B)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=z)}else i.status=z;if(i.status===z)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=U)}else i.status=U;if(i.status===U&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=H)):i.status=H),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&J(e)<=J(n)&&e!==d)return X(t,g);if(i.status===K&&0!==t.avail_in)return X(t,g);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==K){var b=i.strategy===w?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===c)return W;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):i.strategy===x?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=q){if(ot(t),t.lookahead<=q&&e===c)return W;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=$&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+q;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=$?(n=o._tr_tally(t,1,t.match_length-$),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):r[i.level].func(i,e);if(b!==G&&b!==Z||(i.status=K),b===W||b===G)return 0===t.avail_out&&(i.last_flush=-1),h;if(b===V&&(e===u?o._tr_align(i):e!==p&&(o._tr_stored_block(i,0,0,!1),e===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,h}return e!==d?h:i.wrap<=0?m:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:m)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==F&&e!==D&&e!==B&&e!==z&&e!==U&&e!==H&&e!==K?X(t,v):(t.state=null,e===H?X(t,y):h):v},e.deflateSetDictionary=function(t,e){var n,r,o,s,l,c,u,f,d=e.length;if(!t||!t.state)return v;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==F||n.lookahead)return v;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(Q(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,d-n.w_size,n.w_size,0),e=f,d=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=d,t.next_in=0,t.input=e,ot(n);n.lookahead>=$;){r=n.strstart,o=n.lookahead-($-1);do{n.ins_h=(n.ins_h<0&&setTimeout((function(){return r.get(t,e,n)}),1e3),e=e||[],n=this.checkLocale(n),this._translations[n][t]||t)}},{key:"has",value:function(t,e){return["en","en_GB"].indexOf(e)>-1||t!=this.get(t,e)}},{key:"trans",value:function(t,e,n){return this.get(t,e,n)}},{key:"choice",value:function(t,e,n,r){}},{key:"getPluralIndex",value:function(t,e){return function(t,e){switch("pt_BR"==t&&(t="xbr"),t.length>3&&(t=t.substr(0,t.lastIndexOf("_"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0==e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":return e%10==1?0:1;case"mt":return 1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0==e?0:e%10==1&&e%100!=11?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0==e||e%100>0&&e%100<20?1:2;case"ar":return 0==e?0:1==e?1:2==e?2:e>=3&&e<=10?3:e>=11&&e<=99?4:5;default:return 0}}(t,e)}},{key:"locale",value:function(){return this.getLocale()}},{key:"getLocale",value:function(){return this._locale}},{key:"setLocale",value:function(t){"string"!=typeof t&&(t=this._getFallback(),console.error("Could not set a locale to Translator.")),this._locale=t}},{key:"addLocale",value:function(t){"string"!=typeof t?console.error("Could not add a locale to Translator."):this._translations.includes(t)||(this._translations.push(t),this._translations[t]={})}},{key:"checkLocale",value:function(t){return"string"!=typeof t&&(t=this.locale()||this._getFallback()),t}},{key:"loadFromJsonPath",value:(o=i.a.mark((function t(e,n){var r,o=this;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.checkLocale(n),r=this._fileName(e,n),t.prev=2,!this._isLoaded(r)){t.next=9;break}return t.abrupt("return",1);case 8:throw new Error("File ".concat(r," is already loaded."));case 9:return this.addLocale(n),this._queueCount++,this._loadedFiles.push(r),t.next=14,a.a.get(r).then((function(t){Object.assign(o._translations[n],t.data)})).catch((function(t){console.log(t)})).then((function(){o._queueCount--}));case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),console.log("".concat(t.t0.name,": ").concat(t.t0.message));case 19:case"end":return t.stop()}}),t,this,[[2,16]])})),c=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){s(i,n,r,a,l,"next",t)}function l(t){s(i,n,r,a,l,"throw",t)}a(void 0)}))},function(t,e){return c.apply(this,arguments)})},{key:"_fileName",value:function(t,e){return this._url+(t?"".concat(t,"/").concat(e,".json"):"".concat(e,".json"))}},{key:"_isLoaded",value:function(t){return this._loadedFiles.includes(t)}},{key:"_getFallback",value:function(){return this._fallback}},{key:"_setFallback",value:function(t){this._fallback=t}}])&&l(e.prototype,n),r&&l(e,r),t}(),u=n("XuX8"),f=n.n(u);function d(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var p,h,m,v={data:function(){return{langProvider:langProvider}},filters:{trans:function(t,e){return langProvider.trans(t,e)}},methods:{__:function(t,e){return this.trans(t,e)},trans:function(t,e){return langProvider.trans(t,e)},loadFromJsonPath:(p=i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,langProvider.loadFromJsonPath(e);case 2:case"end":return t.stop()}}),t)})),h=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=p.apply(t,e);function o(t){d(i,n,r,o,a,"next",t)}function a(t){d(i,n,r,o,a,"throw",t)}o(void 0)}))},function(t){return h.apply(this,arguments)})}},y={data:function(){return{app_name:Pageinfo.app_name,app_url:Pageinfo.app_url,app_skin:Pageinfo.app_skin}},computed:{skin:function(){var t=this;return function(e){return"".concat(t.app_url,"/resources/skins/").concat(t.app_skin,"/public/").concat(e).replace(/\/+$/,"")}},url:function(){var t=this;return function(e){return"".concat(t.app_url,"/").concat(e).replace(/\/+$/,"")}}}},g=n("L2JU");function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return a()({url:t,params:e,method:"GET",headers:_({Accept:"application/json","Content-Type":"application/json"},x())})}function C(t,e){return a()({url:t,data:e,method:"POST",headers:_({},x())})}function O(t,e){return a()({url:t,data:e,method:"PUT",headers:_({},x())})}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A,S="".concat(Pageinfo.api_url,"/auth/"),j=["id","name","avatar","role","api_token"],T={namespaced:!0,state:{status:null,user:null,base_url:S},getters:{user:function(t){return t.user},api_token:function(t){return t.user&&t.user.api_token},authStatus:function(t){return t.status},isLogged:function(t){return Boolean(t.user&&t.user.api_token)}},mutations:(m={},E(m,"AUTH_INITIALIZE",(function(t,e){t.status="initialized",t.user=e})),E(m,"AUTH_REQUEST",(function(t){t.status="loading",t.user=null})),E(m,"AUTH_SUCCESS",(function(t,e){t.status="success",t.user=e})),E(m,"AUTH_ERROR",(function(t){t.status="error",t.user=null})),E(m,"AUTH_RESET",(function(t){t.status=null,t.user=null})),m),actions:{_reset:function(t){localStorage.removeItem("user"),t.commit("AUTH_RESET")},initialize:function(t){return new Promise((function(e,n){try{t.commit("AUTH_INITIALIZE",JSON.parse(localStorage.getItem("user"))),e()}catch(e){t.dispatch("_reset"),t.commit("AUTH_ERROR"),n(e.message)}}))},logout:function(t){return new Promise((function(e,n){t.dispatch("_reset"),e()}))},login:function(t,e){return t.dispatch("_reset"),t.commit("AUTH_REQUEST"),C(t.state.base_url+"login",e).then((function(e){if(202!=e.status)throw new Error(e.data.message);var n=e.data.data;for(var r in n.api_token=e.headers.api_token,n)j.includes(r)||delete n[r];return localStorage.setItem("user",JSON.stringify(n)),t.commit("AUTH_SUCCESS",n),n})).catch((function(e){return t.commit("AUTH_ERROR"),Promise.reject(e)}))}}};function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L,M={namespaced:!0,state:{container:{}},getters:{all:function(t){return t.container}},mutations:(A={},P(A,"SET_META",(function(t,e){t.container=function(t){for(var e=1;e0?vt:mt)(t)},gt=Math.min,bt=function(t){return t>0?gt(yt(t),9007199254740991):0},_t=Math.max,wt=Math.min,xt=function(t){return function(e,n,r){var i,o=ht(e),a=bt(o.length),s=function(t,e){return(t=yt(t))<0?_t(t+e,0):wt(t,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},kt=D((function(t){var e=it("wks"),n=B.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:rt)("Symbol."+t))}).store=e})),Ct=kt("unscopables"),Ot=Array.prototype;null==Ot[Ct]&&J(Ot,Ct,{});var Et,At=xt(!0);ct(ct.P,"Array",{includes:function(t){return At(this,t,arguments.length>1?arguments[1]:void 0)}}),Et="includes",Ot[Ct][Et]=!0;z.Array.includes;var St=it("keys"),jt=xt(!1),Tt=function(t){return St[t]||(St[t]=rt(t))}("IE_PROTO"),Nt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Pt=Object.keys||function(t){return function(t,e){var n,r=ht(t),i=0,o=[];for(n in r)n!=Tt&&tt(r,n)&&o.push(n);for(;e.length>i;)tt(r,n=e[i++])&&(~jt(o,n)||o.push(n));return o}(t,Nt)},Lt={f:Object.getOwnPropertySymbols},Mt={f:{}.propertyIsEnumerable},$t=function(t){return Object(pt(t))},qt=Object.assign,Rt=!qt||K((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=qt({},t)[n]||Object.keys(qt({},e)).join("")!=r}))?function(t,e){for(var n=$t(t),r=arguments.length,i=1,o=Lt.f,a=Mt.f;r>i;)for(var s,l=dt(arguments[i++]),c=o?Pt(l).concat(o(l)):Pt(l),u=c.length,f=0;u>f;)s=c[f++],W&&!a.call(l,s)||(n[s]=l[s]);return n}:qt;ct(ct.S+ct.F,"Object",{assign:Rt});z.Object.assign;var It=Mt.f,Ft=function(t){return function(e){for(var n,r=ht(e),i=Pt(r),o=i.length,a=0,s=[];o>a;)n=i[a++],W&&!It.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},Dt=Ft(!0);ct(ct.S,"Object",{entries:function(t){return Dt(t)}});z.Object.entries;var Bt=Ft(!1);ct(ct.S,"Object",{values:function(t){return Bt(t)}});z.Object.values;var zt=kt("match"),Ut=function(t,e,n){if(U(r=e)&&(void 0!==(i=r[zt])?i:"RegExp"==ft(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,i;return String(pt(t))},Ht=kt("match"),Kt="".startsWith;ct(ct.P+ct.F*function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ht]=!1,!"/./"[t](e)}catch(t){}}return!0}("startsWith"),"String",{startsWith:function(t){var e=Ut(this,t,"startsWith"),n=bt(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return Kt?Kt.call(e,r,n):e.slice(n,n+r.length)===r}});z.String.startsWith;var Wt=function(){function t(){}return t.register=function(t){this.database=t},t}(),Vt=function(t,e){return(Vt=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 Gt(t,e){function n(){this.constructor=t}Vt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Zt=function(){return(Zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e)return 1;if(t=a)return l;var c=n[s];return l*("desc"===c?-1:1)}}return t.index-e.index}(t,e,n)}))},pickBy:function(t,e){return Object.keys(t).reduce((function(n,r){var i=t[r];return e(i,r)&&(n[r]=i),n}),{})}},te=function(t){this.model=t},ee=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.isNullable=!1,i.value=n,i.mutator=r,i}return Gt(e,t),e.prototype.nullable=function(){return this.isNullable=!0,this},e.prototype.mutate=function(t,e){var n=this.mutator||this.model.mutators()[e];return n?n(t):t},e}(te),ne=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.value=n,i}return Gt(e,t),e.prototype.make=function(t,e,n){var r=t=void 0!==t?t:this.value;return"function"==typeof t&&(r=t()),this.mutate(r,n)},e}(ee),re=function(t){function e(e){return t.call(this,e,null)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return"number"==typeof t?t:null},e}(ee),ie=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"string"==typeof t?t:null===t&&this.isNullable?t:t+""},e}(ee),oe=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:null===t&&this.isNullable?t:0},e}(ee),ae=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){if(void 0===t)return this.value;if("boolean"==typeof t)return t;if("string"==typeof t){if(0===t.length)return!1;var e=parseInt(t,0);return!!isNaN(e)||!!e}return"number"==typeof t?!!t:!(null!==t||!this.isNullable)&&t},e}(ee),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.getRelation=function(t,e,n){var r=t.newQuery(e);return n.forEach((function(t){t(r)})),r},e.prototype.getKeys=function(t,e){return t.reduce((function(t,n){return null===n[e]||void 0===n[e]?t:(t.push(n[e]),t)}),[])},e.prototype.mapSingleRelations=function(t,e){return t.reduce((function(t,n){return t[n[e]]=n,t}),{})},e.prototype.mapManyRelations=function(t,e){return t.reduce((function(t,n){var r=n[e];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e.prototype.isOneRelation=function(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t},e.prototype.isManyRelation=function(t){return!!Array.isArray(t)&&!(t.length<1)},e.prototype.makeManyRelation=function(t,e){var n=this;return this.isManyRelation(t)?t.filter((function(t){return n.isOneRelation(t)})).map((function(t){return new e(t)})):[]},e}(te),le=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity];r&&r[t]&&void 0===r[t][this.foreignKey]&&(e[this.localKey]||(e[this.localKey]=e.$id),r[t][this.foreignKey]=e[this.localKey])},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.foreignKey]]=n,t}),{})},e}(se),ce=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.one(this.parent)},e.prototype.attach=function(t,e,n){void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.parent(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.parent.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.ownerKey,this.getKeys(e,this.foreignKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.foreignKey],o=null!==e?i[e]:null;t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.ownerKey]]=n,t}),{})},e}(se),ue=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;Array.isArray(t)&&t.forEach((function(t){var i=n[r.related.entity];i&&i[t]&&void 0===i[t][r.foreignKey]&&(i[t][r.foreignKey]=e[r.localKey])}))},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||[]}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.foreignKey];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e}(se),fe=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.many(this.parent)},e.prototype.attach=function(t,e,n){0!==t.length&&void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.parent)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.parent.entity,r);this.addConstraintForHasManyBy(o,e);var a=this.mapSingleRelations(o.get(),this.ownerKey);e.forEach((function(t){var e=i.getRelatedRecords(a,t[i.foreignKey]);t[n]=e}))},e.prototype.addConstraintForHasManyBy=function(t,e){var n=this,r=e.reduce((function(t,e){return t.concat(e[n.foreignKey])}),[]);t.where(this.ownerKey,r)},e.prototype.getRelatedRecords=function(t,e){return e.reduce((function(e,n){var r=t[n];return r&&e.push(r),e}),[])},e}(se),de=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.through=l.model.relation(r),l.firstKey=i,l.secondKey=o,l.localKey=a,l.secondLocalKey=s,l}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.through.entity);this.addEagerConstraintForThrough(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapThroughRelations(s,o);e.forEach((function(t){var e=l[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForThrough=function(t,e){t.where(this.firstKey,this.getKeys(e,this.localKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.where(this.secondKey,this.getKeys(e,this.secondLocalKey))},e.prototype.mapThroughRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.secondKey);return t.reduce((function(t,e){var i=e[n.firstKey];t[i]||(t[i]=[]);var o=r[e[n.secondLocalKey]];return t[i]=t[i].concat(o),t}),{})},e}(se),pe=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.pivot=l.model.relation(r),l.foreignPivotKey=i,l.relatedPivotKey=o,l.parentKey=a,l.relatedKey=s,l}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e){t.whereFk(this.foreignPivotKey,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedPivotKey))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.foreignPivotKey];t[i]||(t[i]=[]);var o=r[e[n.relatedPivotKey]];return o&&(t[i]=t[i].concat(o)),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return this.pivot.primaryKey instanceof Array==!1?e:(Qt.forOwn(e[t.entity],(function(t){var i=t[n];void 0!==i&&0!==i.length&&r.createPivotRecord(e,t,i)})),e)},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=t[r.related.entity][n][r.relatedKey],l=s+"_"+a,c=t[r.pivot.entity]?t[r.pivot.entity][l]:{};t[r.pivot.entity]=Zt({},t[r.pivot.entity],((i={})[l]=Zt({},c,((o={$id:l})[r.foreignPivotKey]=a,o[r.relatedPivotKey]=s,o)),i))}))},e}(se),he=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.id=n,i.type=r,i}return Gt(e,t),e.prototype.define=function(t){var e=this;return t.union((function(t,n){return n[e.type]}))},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){if(!this.isOneRelation(t))return null;var r=e[this.type],i=this.model.relation(r);return i?new i(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getTypes(e).reduce((function(e,n){var o=i.getRelation(t,n,r);return e[n]=i.mapSingleRelations(o.get(),"$id"),e}),{});e.forEach((function(t){var e=t[i.id],r=t[i.type],a=o[r][e];t[n]=a||null}))},e.prototype.getTypes=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.type];return!t.includes(r)&&t.push(r),t}),[])},e}(se),me=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return Gt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity]&&n[this.related.entity][t];r&&(r[this.id]=r[this.id]||e.$id,r[this.type]=r[this.type]||this.model.entity)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphOne(o,e,t.entity);var a=this.mapSingleRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||null}))},e.prototype.addEagerConstraintForMorphOne=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(se),ve=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;if(Array.isArray(t)){var i=n[this.related.entity];t.forEach((function(t){var n=i[t];n[r.id]=n[r.id]||e.$id,n[r.type]=n[r.type]||r.model.entity}))}},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphMany(o,e,t.entity);var a=this.mapManyRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForMorphMany=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(se),ye=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,t.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedId))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.id];t[i]||(t[i]=[]);var o=r[e[n.relatedId]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Qt.forOwn(e[t.entity],(function(i){var o=t.query().newQuery(r.pivot.entity).where(r.id,i[r.parentKey]).where(r.type,t.entity).get().map((function(t){return t[r.parentKey]})),a=(i[n]||[]).filter((function(t){return!o.includes(t)}));Array.isArray(a)&&0!==a.length&&r.createPivotRecord(t,e,i,a)})),e},e.prototype.createPivotRecord=function(t,e,n,r){var i=this;r.forEach((function(r){var o,a,s=n[i.parentKey],l=e[i.related.entity][r][i.relatedKey],c=s+"_"+r+"_"+t.entity;e[i.pivot.entity]=Zt({},e[i.pivot.entity],((o={})[c]=((a={$id:c})[i.relatedId]=l,a[i.id]=s,a[i.type]=t.entity,a),o))}))},e}(se),ge=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,this.related.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.relatedId,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.id))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.relatedId];t[i]||(t[i]=[]);var o=r[e[n.id]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Qt.forOwn(e[t.entity],(function(t){var i=t[n];Array.isArray(i)&&r.createPivotRecord(e,t,i)})),e},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=n+"_"+a+"_"+r.related.entity;t[r.pivot.entity]=Zt({},t[r.pivot.entity],((i={})[s]=((o={$id:s})[r.relatedId]=a,o[r.id]=n,o[r.type]=r.related.entity,o),i))}))},e}(se),be=function(){function t(){}return t.serialize=function(t){var e=this,n=t.$fields();return Object.keys(n).reduce((function(n,r){var i=t[r];return n[r]=e.serializeValue(i),n}),{})},t.serializeValue=function(t){return t instanceof we?this.serializeItem(t):Array.isArray(t)?this.serializeCollection(t):t},t.serializeItem=function(t){return t.$toJson()},t.serializeCollection=function(t){return t.map((function(t){return t instanceof we?t.$toJson():t}))},t}(),_e=function(){function t(){}return t.set=function(){this.value=""+this.prefix+this.count},t.get=function(){return this.value},t.increment=function(){return this.count++,this.set(),this.get()},t.count=0,t.prefix="_no_key_",t.value="",t}(),we=function(){function t(t){this.$id=null,this.$fill(t)}return t.fields=function(){return{}},t.getFields=function(){return this.cachedFields?this.cachedFields:(this.cachedFields=this.fields(),this.cachedFields)},t.attr=function(t,e){return new ne(this,t,e)},t.string=function(t,e){return new ie(this,t,e)},t.number=function(t,e){return new oe(this,t,e)},t.boolean=function(t,e){return new ae(this,t,e)},t.increment=function(){return new re(this)},t.hasOne=function(t,e,n){return new le(this,t,e,this.localKey(n))},t.belongsTo=function(t,e,n){return new ce(this,t,e,this.relation(t).localKey(n))},t.hasMany=function(t,e,n){return new ue(this,t,e,this.localKey(n))},t.hasManyBy=function(t,e,n){return new fe(this,t,e,this.relation(t).localKey(n))},t.hasManyThrough=function(t,e,n,r,i,o){return new de(this,t,e,n,r,this.localKey(i),this.relation(e).localKey(o))},t.belongsToMany=function(t,e,n,r,i,o){return new pe(this,t,e,n,r,this.localKey(i),this.relation(t).localKey(o))},t.morphTo=function(t,e){return new he(this,t,e)},t.morphOne=function(t,e,n,r){return new me(this,t,e,n,this.localKey(r))},t.morphMany=function(t,e,n,r){return new ve(this,t,e,n,this.localKey(r))},t.morphToMany=function(t,e,n,r,i,o,a){return new ye(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.morphedByMany=function(t,e,n,r,i,o,a){return new ge(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.mutators=function(){return{}},t.database=function(){return Wt.database},t.store=function(){return this.database().store},t.namespace=function(t){return this.database().namespace+"/"+this.entity+"/"+t},t.getters=function(t){return this.store().getters[this.namespace(t)]},t.dispatch=function(t,e){return this.store().dispatch(this.namespace(t),e)},t.commit=function(t){this.store().commit(this.database().namespace+"/$mutate",{entity:this.entity,callback:t})},t.all=function(){return this.getters("all")()},t.find=function(t){return this.getters("find")(t)},t.findIn=function(t){return this.getters("findIn")(t)},t.query=function(){return this.getters("query")()},t.new=function(){return this.dispatch("new")},t.create=function(t){return this.dispatch("create",t)},t.insert=function(t){return this.dispatch("insert",t)},t.update=function(t){return this.dispatch("update",t)},t.insertOrUpdate=function(t){return this.dispatch("insertOrUpdate",t)},t.delete=function(t){return this.dispatch("delete",t)},t.deleteAll=function(){return this.dispatch("deleteAll")},t.id=function(t){var e=this.primaryKey;return"string"==typeof e?t[e]:e.map((function(e){return t[e]||_e.increment()})).join("_")},t.localKey=function(t){return t||("string"==typeof this.primaryKey?this.primaryKey:"id")},t.relation=function(t){return"string"!=typeof t?t:this.database().model(t)},t.getAttributeClass=function(t){switch(t){case"increment":return re;default:throw Error('The attribute name "'+t+"\" doesn't exist.")}},t.getFieldsByAttribute=function(t){var e=this.getAttributeClass(t),n=this.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof e&&(t[r]=i),t}),{})},t.getIncrementFields=function(){return this.getFieldsByAttribute("increment")},t.hasIncrementFields=function(){return Object.keys(this.getIncrementFields()).length>0},t.pivotFields=function(){var t=[];return Qt.forOwn(this.fields(),(function(e,n){var r;(e instanceof pe||e instanceof ye||e instanceof ge)&&t.push(((r={})[n]=e,r))})),t},t.hasPivotFields=function(){return this.pivotFields().length>0},t.hydrate=function(t){return new this(t).$toJson()},t.prototype.$self=function(){return this.constructor},t.prototype.$fields=function(){return this.$self().getFields()},t.prototype.$store=function(){return this.$self().store()},t.prototype.$namespace=function(t){return this.$self().namespace(t)},t.prototype.$getters=function(t){return this.$self().getters(t)},t.prototype.$dispatch=function(t,e){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(n){return[2,this.$self().dispatch(t,e)]}))}))},t.prototype.$all=function(){return this.$getters("all")()},t.prototype.$find=function(t){return this.$getters("find")(t)},t.prototype.$findIn=function(t){return this.$getters("findIn")(t)},t.prototype.$query=function(){return this.$getters("query")()},t.prototype.$create=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("create",t)]}))}))},t.prototype.$insert=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("insert",t)]}))}))},t.prototype.$update=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return Array.isArray(t)?[2,this.$dispatch("update",t)]:void 0!==t.where?[2,this.$dispatch("update",t)]:void 0===this.$self().id(t)?[2,this.$dispatch("update",{where:this.$id,data:t})]:[2,this.$dispatch("update",t)]}))}))},t.prototype.$insertOrUpdate=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("insertOrUpdate",t)]}))}))},t.prototype.$save=function(){return Yt(this,void 0,void 0,(function(){var t,e,n,r=this;return Xt(this,(function(i){switch(i.label){case 0:return t=this.$self().getFields(),e=Object.keys(t).reduce((function(e,n){return t[n]instanceof ee&&(e[n]=r[n]),e}),{}),[4,this.$dispatch("insertOrUpdate",{data:e})];case 1:return n=i.sent(),this.$fill(n[this.$self().entity][0]),[2,this]}}))}))},t.prototype.$delete=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return t?[2,this.$dispatch("delete",t)]:null===this.$id?[2,null]:[2,this.$dispatch("delete",this.$id)]}))}))},t.prototype.$deleteAll=function(){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(t){return[2,this.$dispatch("deleteAll")]}))}))},t.prototype.$fill=function(t){var e=this,n=t||{},r=this.$fields();Object.keys(r).forEach((function(t){var i=r[t],o=n[t];e[t]=i.make(o,n,t)})),void 0!==n.$id&&(this.$id=n.$id)},t.prototype.$toJson=function(){return be.serialize(this)},t.prototype.toJSON=function(){return this.$toJson()},t.primaryKey="id",t.state={},t}();function xe(t,e){for(var n=0;n1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]}(t),Me(e).map((function(e,s){return i(e,n,r,t,o,a)}))},qe=function(t){function e(){return t.apply(this,arguments)||this}Ee(e,t);var n=e.prototype;return n.normalize=function(t,e,n,r,i,o){var a=this;return Me(t).map((function(t,s){return a.normalizeValue(t,e,n,r,i,o)})).filter((function(t){return null!=t}))},n.denormalize=function(t,e){var n=this;return t&&t.map?t.map((function(t){return n.denormalizeValue(t,e)})):t},e}(Ne),Re=function(t,e,n,r,i,o,a){var s=Oe({},e);return Object.keys(t).forEach((function(n){var r=t[n],l=i(e[n],e,n,r,o,a);null==l?delete s[n]:s[n]=l})),s},Ie=function(t,e,n){if(Ae(e))return Se(t,e,n);var r=Oe({},e);return Object.keys(t).forEach((function(e){null!=r[e]&&(r[e]=n(r[e],t[e]))})),r},Fe=function t(e,n,r,i,o,a){return"object"==typeof e&&e?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(e,n,r,t,o,a):(Array.isArray(i)?$e:Re)(i,e,n,r,t,o,a):e},De={Array:qe,Entity:Te,Object:function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var r,i=t[n];return Oe({},e,((r={})[n]=i,r))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t.withAllRecursive(e-1)}))},t.setEagerLoad=function(t,e,n){void 0===n&&(n=null),t.load[e]||(t.load[e]=[]),n&&t.load[e].push(n)},t.parseWithRelations=function(t,e,n){var r=this,i=e[0];i.split("|").forEach((function(i){1!==e.length?r.setEagerLoad(t,i):r.setEagerLoad(t,i,n)})),1!==e.length&&(e.shift(),this.addNestedWiths(t,i,e,n))},t.addNestedWiths=function(t,e,n,r){this.setEagerLoad(t,e,(function(t){t.with(n.join("."),r)}))},t.eagerLoadRelations=function(t,e){var n=t.model.getFields();for(var r in t.load){var i=t.load[r],o=n[r];o instanceof se&&o.load(t,e,r,i)}},t}(),Je=function(){function t(){}return t.has=function(t,e,n,r){this.setHas(t,e,"exists",n,r)},t.hasNot=function(t,e,n,r){this.setHas(t,e,"doesntExist",n,r)},t.whereHas=function(t,e,n){this.setHas(t,e,"exists",void 0,void 0,n)},t.whereHasNot=function(t,e,n){this.setHas(t,e,"doesntExist",void 0,void 0,n)},t.setHas=function(t,e,n,r,i,o){void 0===r&&(r=">="),void 0===i&&(i=1),void 0===o&&(o=null),"number"!=typeof r?t.have.push({relation:e,type:n,operator:r,count:i,constraint:o}):t.have.push({relation:e,type:n,operator:">=",count:r,constraint:o})},t.applyConstraints=function(t){if(0!==t.have.length){var e=t.newQuery();this.addHasWhereConstraints(t,e),this.addHasConstraints(t,e.get())}},t.addHasWhereConstraints=function(t,e){t.have.forEach((function(t){e.with(t.relation,t.constraint)}))},t.addHasConstraints=function(t,e){var n=this.getComparators(t),r=[];e.forEach((function(t){n.every((function(e){return e(t)}))&&r.push(t.$id)})),t.whereIdIn(r)},t.getComparators=function(t){var e=this;return t.have.map((function(t){return e.getComparator(t)}))},t.getComparator=function(t){var e=this,n=this.getCountComparator(t.operator);return function(r){var i=e.getRelationshipCount(r[t.relation]),o=n(i,t.count);return"exists"===t.type?o:!o}},t.getRelationshipCount=function(t){return Array.isArray(t)?t.length:t?1:0},t.getCountComparator=function(t){switch(t){case"=":return function(t,e){return t===e};case">":return function(t,e){return t>e};case">=":return function(t,e){return t>=e};case"<":return function(t,e){return t>0&&t0&&t<=e};default:return function(t,e){return t===e}}},t}(),Qe=function(){function t(t){this.indexToBeDeleted=[],this.query=t}return t.on=function(t,e,n){void 0===n&&(n=!1);var r=this.lastHookId+1;return this.lastHookId=r,this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push({callback:e,once:n,uid:r}),r},t.off=function(t){var e=this,n=!1;return Object.keys(this.hooks).some((function(r){var i=e.hooks[r],o=i.findIndex((function(e){return e.uid===t}));return-1!==o&&(i.splice(o,1),n=!0),n})),n},t.prototype.self=function(){return this.constructor},t.prototype.getHook=function(t){return this.query.model[t]||null},t.prototype.getGlobalHook=function(t){return this.self().hooks[t]||null},t.prototype.has=function(t){return!!this.getHook(t)||!!this.getGlobalHook(t)},t.prototype.executeSelectHook=function(t,e){return this.has(t)?(e=this.executeLocalSelectHook(t,e),e=this.executeGlobalSelectHook(t,e)):e},t.prototype.executeLocalSelectHook=function(t,e){var n=this.getHook(t);return n?n(e,this.query.entity):e},t.prototype.executeGlobalSelectHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(!r)return e;var i=[];return r.forEach((function(t,r){var o=t.callback,a=t.once;e=o.call(n.query,e,n.query.entity),a&&i.push(r)})),i.reverse().forEach((function(t){r.splice(t,1)})),e},t.prototype.executeMutationHookOnRecords=function(t,e){var n=this;this.has(t)&&(Object.keys(e).forEach((function(r){!1===n.executeMutationHook(t,e[r])&&delete e[r]})),this.removeGlobalHook(t))},t.prototype.executeMutationHook=function(t,e){return!1!==this.executeLocalMutationHook(t,e)&&(!1!==this.executeGlobalMutationHook(t,e)&&void 0)},t.prototype.executeLocalMutationHook=function(t,e){var n=this.getHook(t);if(n)return n(e,this.query.entity)},t.prototype.executeGlobalMutationHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(r){var i=[];return r.forEach((function(t,r){i.push(t.callback.call(n.query,e,n.query.entity)),t.once&&n.indexToBeDeleted.push(r)})),!i.includes(!1)&&void 0}},t.prototype.removeGlobalHook=function(t){var e=this.getGlobalHook(t);e&&this.indexToBeDeleted.reverse().forEach((function(t){e.splice(t,1)}))},t.hooks={},t.lastHookId=0,t}(),tn=function(){function t(t,e){this.idFilter=null,this.cancelIdFilter=!1,this.joinedIdFilter=null,this.wheres=[],this.have=[],this.orders=[],this.offsetNumber=0,this.limitNumber=Math.pow(2,53)-1,this.load={},this.rootState=t,this.state=t[e],this.entity=e,this.model=this.getModel(e),this.module=this.getModule(e),this.hook=new Qe(this)}return t.database=function(){return Wt.database},t.getModel=function(t){return this.database().model(t)},t.getModels=function(){return this.database().models()},t.getModule=function(t){return this.database().module(t)},t.getModules=function(){return this.database().modules()},t.deleteAll=function(t){var e=this,n=this.getModels();Qt.forOwn(n,(function(n,r){t[r]&&new e(t,r).deleteAll()}))},t.on=function(t,e,n){return Qe.on(t,e,n)},t.off=function(t){return Qe.off(t)},t.prototype.self=function(){return this.constructor},t.prototype.newQuery=function(e){return e=e||this.entity,new t(this.rootState,e)},t.prototype.database=function(){return this.self().database()},t.prototype.getModel=function(t){var e=t||this.entity;return this.self().getModel(e)},t.prototype.getModels=function(){return this.self().getModels()},t.prototype.getModule=function(t){var e=t||this.entity;return this.self().getModule(e)},t.prototype.getModules=function(){return this.self().getModules()},t.prototype.all=function(){return this.get()},t.prototype.find=function(t){return this.item(this.state.data[t])},t.prototype.findIn=function(t){var e=this;return t.map((function(t){return e.state.data[t]})).filter((function(t){return t}))},t.prototype.get=function(){var t=this.select();return this.collect(t)},t.prototype.first=function(){var t=this.select();return this.item(t[0])},t.prototype.last=function(){var t=this.select();return this.item(t[t.length-1])},t.prototype.where=function(t,e){return this.isIdfilterable(t)&&this.setIdFilter(e),this.wheres.push({field:t,value:e,boolean:"and"}),this},t.prototype.orWhere=function(t,e){return this.cancelIdFilter=!0,this.wheres.push({field:t,value:e,boolean:"or"}),this},t.prototype.whereId=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereIdIn=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereFk=function(t,e){var n=Array.isArray(e)?e:[e];return t===this.model.primaryKey?(this.setJoinedIdFilter(n),this):(this.where(t,n),this)},t.prototype.isIdfilterable=function(t){return t===this.model.primaryKey&&!this.cancelIdFilter},t.prototype.setIdFilter=function(t){var e=this,n=Array.isArray(t)?t:[t];null!==this.idFilter?this.idFilter=new Set(n.filter((function(t){return e.idFilter.has(t)}))):this.idFilter=new Set(n)},t.prototype.setJoinedIdFilter=function(t){var e=this;null!==this.joinedIdFilter?this.joinedIdFilter=new Set(t.filter((function(t){return e.joinedIdFilter.has(t)}))):this.joinedIdFilter=new Set(t)},t.prototype.orderBy=function(t,e){return void 0===e&&(e="asc"),this.orders.push({field:t,direction:e}),this},t.prototype.offset=function(t){return this.offsetNumber=t,this},t.prototype.limit=function(t){return this.limitNumber=t,this},t.prototype.with=function(t,e){return void 0===e&&(e=null),Xe.with(this,t,e),this},t.prototype.withAll=function(){return Xe.withAll(this),this},t.prototype.withAllRecursive=function(t){return void 0===t&&(t=3),Xe.withAllRecursive(this,t),this},t.prototype.has=function(t,e,n){return Je.has(this,t,e,n),this},t.prototype.hasNot=function(t,e,n){return Je.hasNot(this,t,e,n),this},t.prototype.whereHas=function(t,e){return Je.whereHas(this,t,e),this},t.prototype.whereHasNot=function(t,e){return Je.whereHasNot(this,t,e),this},t.prototype.records=function(){var t=this;return this.finalizeIdFilter(),this.getIdsToLookup().map((function(e){var n=t.state.data[e];return n instanceof we?n:t.hydrate(n)}))},t.prototype.finalizeIdFilter=function(){this.cancelIdFilter&&null!==this.idFilter&&(this.where(this.model.primaryKey,Array.from(this.idFilter.values())),this.idFilter=null)},t.prototype.getIdsToLookup=function(){var t=this;return this.idFilter&&this.joinedIdFilter?Array.from(this.idFilter.values()).filter((function(e){return t.joinedIdFilter.has(e)})):this.idFilter||this.joinedIdFilter?Array.from((this.idFilter||this.joinedIdFilter).values()):Object.keys(this.state.data)},t.prototype.select=function(){Je.applyConstraints(this);var t=this.records();return t=this.hook.executeSelectHook("beforeSelect",t),t=this.filterWhere(t),t=this.hook.executeSelectHook("afterWhere",t),t=this.filterOrderBy(t),t=this.hook.executeSelectHook("afterOrderBy",t),t=this.filterLimit(t),t=this.hook.executeSelectHook("afterLimit",t)},t.prototype.filterWhere=function(t){return Ye.where(this,t)},t.prototype.filterOrderBy=function(t){return Ye.orderBy(this,t)},t.prototype.filterLimit=function(t){return Ye.limit(this,t)},t.prototype.count=function(){return this.get().length},t.prototype.max=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.max.apply(Math,e)},t.prototype.min=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.min.apply(Math,e)},t.prototype.sum=function(t){return this.get().reduce((function(e,n){return"number"==typeof n[t]&&(e+=n[t]),e}),0)},t.prototype.item=function(t){if(!t)return null;if(Object.keys(this.load).length>0){t=new this.model(t);var e=this.hook.executeSelectHook("beforeRelations",[t]);t=e[0],Xe.eagerLoadRelations(this,[t]),t=(e=this.hook.executeSelectHook("afterRelations",[t]))[0]}return t},t.prototype.collect=function(t){var e=this;return t.length<1?[]:(Object.keys(this.load).length>0&&(t=t.map((function(t){return new e.model(t)})),t=this.hook.executeSelectHook("beforeRelations",t),Xe.eagerLoadRelations(this,t),t=this.hook.executeSelectHook("afterRelations",t)),t)},t.prototype.new=function(){var t=(new this.model).$toJson();return this.insert(t,{})[this.entity][0]},t.prototype.create=function(t,e){return this.persist(t,"create",e)},t.prototype.createMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=n})),this.map(n)},t.prototype.insert=function(t,e){return this.persist(t,"insert",e)},t.prototype.insertMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=Zt({},e.state.data,n)})),this.map(n)},t.prototype.update=function(t,e,n){if(Array.isArray(t))return this.persist(t,"update",n);if("function"==typeof t){if(!e)throw new Error("You must specify `where` to update records by specifying `data` as a closure.");return"function"==typeof e?this.updateByCondition(t,e):this.updateById(t,e)}if("function"==typeof e)return this.updateByCondition(t,e);if(!e)return this.persist(t,"update",n);if(Array.isArray(this.model.primaryKey))throw new Error("\n You can't specify `where` value as `string` or `number` when you\n have a composite key defined in your model. Please include composite\n keys to the `data` fields.\n ");return this.updateById(t,e)},t.prototype.updateMany=function(t){var e=this.combine(t);return this.commitUpdate(e)},t.prototype.updateById=function(t,e){var n;e="number"==typeof e?e.toString():e;var r=this.state.data[e];if(!r)return null;var i=((n={})[e]=this.processUpdate(t,r),n);return this.commitUpdate(i),i[e]},t.prototype.updateByCondition=function(t,e){var n=this,r=Object.keys(this.state.data).reduce((function(r,i){var o=n.state.data[i];return e(o)?(r[i]=n.processUpdate(t,o),r):r}),{});return this.commitUpdate(r)},t.prototype.processUpdate=function(t,e){return"function"==typeof t?(t(e),e):this.hydrate(Zt({},e,t))},t.prototype.commitUpdate=function(t){var e=this;return t=this.updateIndexes(t),this.commit("update",t,(function(){e.state.data=Zt({},e.state.data,t)})),this.map(t)},t.prototype.updateIndexes=function(t){var e=this;return Object.keys(t).reduce((function(t,n){var r=t[n],i=String(e.model.id(r));return n!==i&&(r.$id=i,t[i]=r,delete t[n]),t}),t)},t.prototype.insertOrUpdate=function(t,e){return this.persist(t,"insertOrUpdate",e)},t.prototype.insertOrUpdateMany=function(t){var e=this,n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];e.state.data[i]?r[i]=o:n[i]=o})),this.insertMany(n).concat(this.updateMany(r))},t.prototype.persist=function(t,e,n){var r=this;return t=this.normalize(t),Qt.isEmpty(t)?("create"===e&&(this.state.data={}),{}):Object.keys(t).reduce((function(i,o){var a=r.newQuery(o)[r.getPersistMethod(o,e,n)+"Many"](t[o]);return a.length>0&&(i[o]=a),i}),{})},t.prototype.getPersistMethod=function(t,e,n){return n.create&&n.create.includes(t)?"create":n.insert&&n.insert.includes(t)?"insert":n.update&&n.update.includes(t)?"update":n.insertOrUpdate&&n.insertOrUpdate.includes(t)?"insertOrUpdate":e},t.prototype.delete=function(t){return"function"==typeof t?this.deleteByCondition(t):this.deleteById(t)},t.prototype.deleteById=function(t){var e;t="number"==typeof t?t.toString():t;var n=this.state.data[t];if(!n)return null;var r=((e={})[t]=n,e);return this.commitDelete(r)[0]},t.prototype.deleteByCondition=function(t){var e=this,n=Object.keys(this.state.data).reduce((function(n,r){var i=e.state.data[r];return t(i)?(n[r]=i,n):n}),{});return this.commitDelete(n)},t.prototype.deleteAll=function(){var t=this.state.data;this.commitDelete(t)},t.prototype.commitDelete=function(t){var e=this;return this.commit("delete",t,(function(){var n=Object.keys(t);e.state.data=Object.keys(e.state.data).reduce((function(t,r){return n.includes(r)||(t[r]=e.state.data[r]),t}),{})})),this.map(t)},t.prototype.normalize=function(t){return We.normalize(this,t)},t.prototype.hydrate=function(t){return new(0,this.model)(t)},t.prototype.hydrateMany=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=t[r];return n[r]=e.hydrate(i),n}),{})},t.prototype.combine=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=e.state.data[r];if(!i)return n;var o=t[r];return n[r]=e.hydrate(Zt({},i,o)),n}),{})},t.prototype.map=function(t){return Object.keys(t).map((function(e){return t[e]}))},t.prototype.commit=function(t,e,n){var r=""+t.charAt(0).toUpperCase()+t.slice(1);this.hook.executeMutationHookOnRecords("before"+r,e),n(),this.hook.executeMutationHookOnRecords("after"+r,e)},t}(),en={query:function(t,e,n,r){return function(){return r[t.$connection+"/query"](t.$name)}},all:function(t,e,n,r){return function(){return r[t.$connection+"/all"](t.$name)}},find:function(t,e,n,r){return function(e){return r[t.$connection+"/find"](t.$name,e)}},findIn:function(t,e,n,r){return function(e){return r[t.$connection+"/findIn"](t.$name,e)}}},nn={new:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/new",{entity:n},{root:!0})},create:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/create",Zt({},e,{entity:r}),{root:!0})},insert:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insert",Zt({},e,{entity:r}),{root:!0})},update:function(t,e){var n=t.state,r=n.$name;return Array.isArray(e)?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):void 0===e.data?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):t.dispatch(n.$connection+"/update",Zt({entity:r},e),{root:!0})},insertOrUpdate:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insertOrUpdate",Zt({entity:r},e),{root:!0})},delete:function(t,e){var n=t.state,r=n.$name,i="object"==typeof e?e.where:e;return t.dispatch(n.$connection+"/delete",{entity:r,where:i},{root:!0})},deleteAll:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/deleteAll",{entity:n},{root:!0})}},rn={query:function(t){return function(e){return new tn(t,e)}},all:function(t){return function(e){return new tn(t,e).all()}},find:function(t){return function(e,n){return new tn(t,e).find(n)}},findIn:function(t){return function(e,n){return new tn(t,e).findIn(n)}}},on={new:function(t,e){var n={data:{}};return t.commit("new",Zt({},e,{result:n})),n.data},create:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("create",Zt({},e,{result:n})),[2,n.data]}))}))},insert:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("insert",Zt({},e,{result:n})),[2,n.data]}))}))},update:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("update",Zt({},e,{result:n})),[2,n.data]}))}))},insertOrUpdate:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("insertOrUpdate",Zt({},e,{result:n})),[2,n.data]}))}))},delete:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("delete",Zt({},e,{result:n})),[2,n.data]}))}))},deleteAll:function(t,e){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(n){return e&&e.entity?(t.commit("deleteAll",{entity:e.entity}),[2]):(t.commit("deleteAll"),[2])}))}))}},an=function(){function t(){}return t.createPersistOptions=function(t){return{create:t.create,insert:t.insert,update:t.update,insertOrUpdate:t.insertOrUpdate}},t}(),sn={$mutate:function(t,e){e.callback(t[e.entity])},new:function(t,e){var n=e.entity;e.result.data=new tn(t,n).new()},create:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).create(r,i)},insert:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).insert(r,i)},update:function(t,e){var n=e.entity,r=e.data,i=e.where||null,o=an.createPersistOptions(e);e.result.data=new tn(t,n).update(r,i,o)},insertOrUpdate:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).insertOrUpdate(r,i)},delete:function(t,e){var n=e.entity,r=e.where;e.result.data=new tn(t,n).delete(r)},deleteAll:function(t,e){e&&e.entity?new tn(t,e.entity).deleteAll():tn.deleteAll(t)}};var ln=function(){function t(){}return t.create=function(t){return function(e,n,r){var i=t.id(e);return null==i||""===i?_e.get():i}},t}(),cn=function(){function t(){}return t.create=function(t){var e=this;return function(n,r,i){var o=e.getId(t,n);return Zt({},n,{$id:o})}},t.getId=function(t,e){var n=t.id(e);return null==n||""===n?_e.increment():n},t}(),un=function(){function t(t){var e=this;this.schemas={},this.model=t;var n=t.database().models();Object.keys(n).forEach((function(t){e.one(n[t])}))}return t.create=function(t){return new this(t).one()},t.prototype.one=function(t){if(t=t||this.model,this.schemas[t.entity])return this.schemas[t.entity];var e=new De.Entity(t.entity,{},{idAttribute:ln.create(t),processStrategy:cn.create(t)});this.schemas[t.entity]=e;var n=this.definition(t);return e.define(n),e},t.prototype.many=function(t){return new De.Array(this.one(t))},t.prototype.union=function(t){return new De.Union(this.schemas,t)},t.prototype.definition=function(t){var e=this,n=t.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof se&&(t[r]=i.define(e)),t}),{})},t}(),fn=function(){function t(){}return t.create=function(t,e,n){var r={namespaced:!0,state:{$name:t},getters:rn,actions:on,mutations:sn,modules:{}};return this.createModules(r,t,e,n)},t.createModules=function(t,e,n,r){var i=this;return Object.keys(r).forEach((function(o){var a=n[o],s=r[o];t.modules[o]={namespaced:!0},t.modules[o].state=i.createState(e,o,a,s),t.getters[o]=function(t,e,n,r){return function(){return e.query(o)}},t.modules[o].getters=Zt({},en,s.getters),t.modules[o].actions=Zt({},nn,s.actions),t.modules[o].mutations=s.mutations||{}})),t},t.createState=function(t,e,n,r){var i="function"==typeof n.state?n.state():n.state,o="function"==typeof r.state?r.state():r.state;return Zt({},i,o,{$connection:t,$name:e,data:{}})},t}(),dn=function(){function t(){this.entities=[],this.schemas={}}return t.prototype.start=function(t,e){this.store=t,this.namespace=e,this.registerModules(),this.createSchema()},t.prototype.register=function(t,e){void 0===e&&(e={}),this.entities.push({name:t.entity,model:t,module:e})},t.prototype.model=function(t){return this.models()[t]},t.prototype.models=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.model,t}),{})},t.prototype.module=function(t){return this.modules()[t]},t.prototype.modules=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.module,t}),{})},t.prototype.registerModules=function(){var t=fn.create(this.namespace,this.models(),this.modules());this.store.registerModule(this.namespace,t)},t.prototype.createSchema=function(){var t=this;this.entities.forEach((function(e){t.schemas[e.name]=un.create(e.model)}))},t}(),pn={install:function(t,e){void 0===e&&(e={});var n=e.namespace||"entities";return function(e){Wt.register(t),t.start(e,n)}},use:function(t,e){void 0===e&&(e={});var n={Model:we,Query:tn,Attribute:te,Type:ee,Attr:ne,String:ie,Number:oe,Boolean:ae,Increment:re,Relation:se,HasOne:le,BelongsTo:ce,HasMany:ue,HasManyBy:fe,BelongsToMany:pe,HasManyThrough:de,MorphTo:he,MorphOne:me,MorphMany:ve,MorphToMany:ye,MorphedByMany:ge,Getters:en,Actions:nn,RootGetters:rn,RootActions:on,RootMutations:sn};t.install(n,e)},Database:dn,Model:we,Query:tn,Attribute:te,Type:ee,Attr:ne,String:ie,Number:oe,Boolean:ae,Increment:re,Relation:se,HasOne:le,BelongsTo:ce,HasMany:ue,HasManyBy:fe,BelongsToMany:pe,HasManyThrough:de,MorphTo:he,MorphOne:me,MorphMany:ve,MorphToMany:ye,MorphedByMany:ge,Getters:en,Actions:nn,RootGetters:rn,RootActions:on,RootMutations:sn},hn=n("WmSy"),mn=n.n(hn);function vn(t){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(t,e){for(var n=0;n-1}function Zr(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function Yr(t,e){for(var n in e)t[n]=e[n];return t}var Xr={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$createElement,s=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),u=0,f=!1;i&&i._routerRoot!==i;){var d=i.$vnode&&i.$vnode.data;d&&(d.routerView&&u++,d.keepAlive&&i._inactive&&(f=!0)),i=i.$parent}if(o.routerViewDepth=u,f)return a(c[s],o,r);var p=l.matched[u];if(!p)return c[s]=null,a();var h=c[s]=p.components[s];o.registerRouteInstance=function(t,e){var n=p.instances[s];(e&&n!==t||!e&&n===t)&&(p.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[s]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[s]&&(p.instances[s]=t.componentInstance)};var m=o.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(l,p.props&&p.props[s]);if(m){m=o.props=Yr({},m);var v=o.attrs=o.attrs||{};for(var y in m)h.props&&y in h.props||(v[y]=m[y],delete m[y])}return a(h,o,r)}};var Jr=/[!'()*]/g,Qr=function(t){return"%"+t.charCodeAt(0).toString(16)},ti=/%2C/g,ei=function(t){return encodeURIComponent(t).replace(Jr,Qr).replace(ti,",")},ni=decodeURIComponent;function ri(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=ni(n.shift()),i=n.length>0?ni(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function ii(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return ei(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(ei(e)):r.push(ei(e)+"="+ei(t)))})),r.join("&")}return ei(e)+"="+ei(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var oi=/\/?$/;function ai(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=si(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:ui(e,i),matched:t?ci(t):[]};return n&&(a.redirectedFrom=ui(n,i)),Object.freeze(a)}function si(t){if(Array.isArray(t))return t.map(si);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=si(t[n]);return e}return t}var li=ai(null,{path:"/"});function ci(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function ui(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||ii)(r)+i}function fi(t,e){return e===li?t===e:!!e&&(t.path&&e.path?t.path.replace(oi,"")===e.path.replace(oi,"")&&t.hash===e.hash&&di(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&di(t.query,e.query)&&di(t.params,e.params)))}function di(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?di(r,i):String(r)===String(i)}))}function pi(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",c=s.path?pi(s.path,l,n||i.append):l,u=function(t,e,n){void 0===e&&(e={});var r,i=n||ri;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(s.query,i.query,r&&r.options.parseQuery),f=i.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:u,hash:f}}var Mi,$i=[String,Object],qi=[String,Array],Ri=function(){},Ii={name:"RouterLink",props:{to:{type:$i,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:qi,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,d=null==u?"router-link-exact-active":u,p=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?ai(null,Li(a.redirectedFrom),null,n):a;l[h]=fi(r,m),l[p]=this.exact?l[h]:function(t,e){return 0===t.path.replace(oi,"/").indexOf(e.path.replace(oi,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var v=function(t){Fi(t)&&(e.replace?n.replace(o,Ri):n.push(o,Ri))},y={click:Fi};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=v})):y[this.event]=v;var g={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:v,isActive:l[p],isExactActive:l[h]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?t():t("span",{},b)}if("a"===this.tag)g.on=y,g.attrs={href:s};else{var _=function t(e){if(e)for(var n,r=0;r-1&&(s.params[d]=n.params[d]);return s.path=Pi(u.path,s.params),l(u,s,a)}if(s.path){s.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function uo(t){return function(e,n,r){var i=!1,o=0,a=null;fo(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,c=mo((function(e){var i;((i=e).__esModule||ho&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Mi.extend(e),n.components[s]=e,--o<=0&&r()})),u=mo((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Gr(t)?t:new Error(e),r(a))}));try{l=t(c,u)}catch(t){u(t)}if(l)if("function"==typeof l.then)l.then(c,u);else{var f=l.component;f&&"function"==typeof f.then&&f.then(c,u)}}})),i||r()}}function fo(t,e){return po(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function po(t){return Array.prototype.concat.apply([],t)}var ho="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function mo(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var vo=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);vo._name="NavigationDuplicated";var yo=function(t,e){this.router=t,this.base=function(t){if(!t)if(Di){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=li,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function go(t,e,n,r){var i=fo(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=Mi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return po(r?i.reverse():i)}function bo(t,e){if(e)return function(){return t.apply(e,arguments)}}yo.prototype.listen=function(t){this.cb=t},yo.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},yo.prototype.onError=function(t){this.errorCbs.push(t)},yo.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},yo.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){!Zr(vo,t)&&Gr(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)};if(fi(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o(new vo(t));var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Oo(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Eo(t){ao?so(Oo(t)):window.location.hash=t}function Ao(t){ao?lo(Oo(t)):window.location.replace(Oo(t))}var So=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}),(function(t){Zr(vo,t)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(yo),jo=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Ui(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ao&&!1!==t.fallback,this.fallback&&(e="hash"),Di||(e="abstract"),this.mode=e,e){case"history":this.history=new _o(this,t.base);break;case"hash":this.history=new xo(this,t.base,this.fallback);break;case"abstract":this.history=new So(this,t.base);break;default:0}},To={currentRoute:{configurable:!0}};function No(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}jo.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},To.currentRoute.get=function(){return this.history&&this.history.current},jo.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof _o)n.transitionTo(n.getCurrentLocation());else if(n instanceof xo){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},jo.prototype.beforeEach=function(t){return No(this.beforeHooks,t)},jo.prototype.beforeResolve=function(t){return No(this.resolveHooks,t)},jo.prototype.afterEach=function(t){return No(this.afterHooks,t)},jo.prototype.onReady=function(t,e){this.history.onReady(t,e)},jo.prototype.onError=function(t){this.history.onError(t)},jo.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},jo.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},jo.prototype.go=function(t){this.history.go(t)},jo.prototype.back=function(){this.go(-1)},jo.prototype.forward=function(){this.go(1)},jo.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},jo.prototype.resolve=function(t,e,n){var r=Li(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?hi(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},jo.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==li&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jo.prototype,To),jo.install=function t(e){if(!t.installed||Mi!==e){t.installed=!0,Mi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Xr),e.component("RouterLink",Ii);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},jo.version="3.1.3",Di&&window.Vue&&window.Vue.use(jo);var Po=jo;function Lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mo(t){for(var e=1;eДля доступа к определенным разделам необходимо иметь соответствующий статус."}},computed:Mo({},Object(g.c)({isLogged:"auth/isLogged"})),created:function(){var t=this;this.$notification.info({title:this.title,message:this.message}),this.authInitialize().then((function(){t.isLogged&&t.$router.push("/")})).catch((function(t){console.error(t)}))},methods:Mo({},Object(g.b)({authLogin:"auth/login",authInitialize:"auth/initialize"}),{signIn:function(){var t=this;this.isProcessing=!0,this.errors={},this.authLogin(this.form).then((function(e){window.location.href=t.$router.options.base})).catch((function(e){t.isProcessing=!1,e.response&&[422,429].includes(e.response.status)&&(t.errors=e.response.data.errors)}))},resetErrors:function(t){this.errors={}}})},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("link",{attrs:{href:t.skin("css/login.css"),rel:"stylesheet",type:"text/css"}}),t._v(" "),n("div",{staticClass:"login__box col-sm-offset-4 col-sm-4 col-xs-offset-2 col-xs-8"},[n("h2",{staticClass:"login__title"},[n("a",{attrs:{href:t.url("/"),target:"_blank"}},[t._v(t._s(t.app_name))])]),t._v(" "),n("hr"),t._v(" "),t.isLogged?t._e():n("form",{staticClass:"form-horizontal",on:{submit:function(e){return e.preventDefault(),t.signIn(e)},input:t.resetErrors}},[n("fieldset",[n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email",required:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t._v(" "),t._l(t.errors.email,(function(e){return n("small",{staticClass:"error__control",domProps:{innerHTML:t._s(e)}})}))],2),t._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[t._m(1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Password",required:""},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),t._v(" "),t._l(t.errors.password,(function(e){return n("small",{staticClass:"error__control"},[t._v(t._s(e))])}))],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("button",{staticClass:"btn btn-outline-secondary pull-right",attrs:{type:"submit",disabled:t.isProcessing}},[t._v("Войти")])]),t._v(" "),t._m(2)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"fa fa-user"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"fa fa-lock"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"copyright"},[this._v("2018-2019 © "),e("a",{attrs:{href:"https://github.com/russsiq/bixbite",target:"_blank"}},[this._v("BixBite CMS")])])}],!1,null,null,null).exports,meta:{title:"Вход в административную панель."}}];function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fo(t){for(var e=1;e1&&(t.push(1),this.rangeStart>2&&t.push("..."));for(var e=this.rangeStart;e<=this.rangeEnd;e++)t.push(e);return this.rangeEnd1&&t.push("..."),t.push(this.totalPages)),t},activeClass:function(){var t=this;return function(e){return{active:e===t.currentPage}}}}),methods:{changePage:function(t){t!==this.currentPage&&this.$emit("paginate",t)}}};n("C3Lh");function Go(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Zo(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Go(o,r,i,a,s,"next",t)}function s(t){Go(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xo(t){for(var e=1;e1?n("ul",{staticClass:"pagination",attrs:{role:"navigation"}},[t._l(t.pages,(function(e){return["..."===e?n("li",{staticClass:"page-item disabled"},[n("span",{staticClass:"page-link"},[t._v("...")])]):n("li",{staticClass:"page-item",class:t.activeClass(e)},[n("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.changePage(e)}}},[t._v(t._s(e))])])]}))],2):t._e()}),[],!1,null,"0a804cb1",null).exports},props:{active:Boolean,massAction:Boolean,model:{type:Function,required:!0}},data:function(){return{filterCandidates:[],queryWatcher:null,query:{order_column:"id",order_direction:"desc",filter_match:"and",limit:10,page:1},limits:[5,10,20,50]}},computed:Xo({},Object(g.c)({meta:"meta/all"}),{orderableColumns:function(){return this.meta.orderableColumns||[]},allowedFilters:function(){return this.$props.model.state().allowedFilters||{}},collection:function(){return this.query.page?this.$props.model.query().withAll().orderBy(this.query.order_column,this.query.order_direction).all():[]},loading:function(){return this.$props.model.getters("loading")},fetchOperators:function(){var t=this;return function(e){return t.availableOperators().filter((function(t){return e.column&&t.parent.includes(e.type)}))}},appliedFilters:function(){return this.filterCandidates.filter((function(t){return!!t.column}))},filters:function(){var t={};return this.appliedFilters.map((function(e,n){t["f[".concat(n,"][column]")]=e.column,t["f[".concat(n,"][operator]")]=e.operator,t["f[".concat(n,"][query_1]")]=e.query_1,e.query_2&&(t["f[".concat(n,"][query_2]")]=e.query_2)})),t}}),filters:{title:function(t){return t?t=(t=t.toString().replace(/_/g," ").replace("."," ")).charAt(0).toUpperCase()+t.slice(1):""}},mounted:function(){this.changePage(parseInt(this.$router.currentRoute.query.page,10)||1),this.queryWatcher=this.$watch("query",Ho()(this.applyChange,1e3),{immediate:!0,deep:!0})},destroyed:function(){},methods:{changeOrderDirection:function(){this.query=Object.assign({},this.query,{order_direction:"desc"===this.query.order_direction?"asc":"desc",page:1})},changePage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.query.page=parseInt(t,10)},selectColumn:function(t){var e=this,n=this.filterCandidates[t].column||null;if(n){var r=Object.keys(this.allowedFilters).find((function(t){return e.allowedFilters[t].hasOwnProperty(n)})),i=this.allowedFilters[r][n];this.filterCandidates[t].type=i.type,this.filterCandidates[t].values=i.values?i.values.split(","):null;var o=this.availableOperators().find((function(t){return t.parent.includes(i.type)})).name;this.filterCandidates[t].operator=o,this.selectOperator(t)}else this.removeFilter(t)},selectOperator:function(t){var e=this,n=this.filterCandidates[t].operator||null;if(n){var r=this.availableOperators().find((function(r){return r.name===n&&r.parent.includes(e.filterCandidates[t].type)})).component,i=null,o=null;switch(r){case"single":case"double":break;case"boolean":i=1;break;case"enum":i=this.filterCandidates[t].values[0]||null;break;case"datetime_1":i=28,o="days";break;case"datetime_2":i="today"}this.filterCandidates[t].component=r,this.filterCandidates[t].query_1=i,this.filterCandidates[t].query_2=o}},addFilter:function(){this.filterCandidates.push({column:"",type:null,component:null,operator:"",values:null,query_1:null,query_2:null})},removeFilter:function(t){this.filterCandidates.splice(t,1),this.applyFilter()},resetFilter:function(){this.filterCandidates.splice(0),this.applyFilter()},applyFilter:function(){this.query=Object.assign({},this.query,{page:1})},applyChange:function(){this.fetch()},fetch:(ta=Zo(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.clearList();case 2:return t.next=4,this.$props.model.$fetch({query:Xo({},this.filters,{},this.query)});case 4:case"end":return t.stop()}}),t,this)}))),function(){return ta.apply(this,arguments)}),clearList:(Qo=Zo(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)}))),function(){return Qo.apply(this,arguments)}),availableOperators:function(){return[{title:"equal to",name:"equal_to",parent:["numeric","string"],component:"single"},{title:"not equal to",name:"not_equal_to",parent:["numeric","string"],component:"single"},{title:"equal to",name:"boolean",parent:["boolean"],component:"boolean"},{title:"equal to",name:"equal_to_count",parent:["counter"],component:"single"},{title:"not equal to",name:"not_equal_to_count",parent:["counter"],component:"single"},{title:"less than",name:"less_than_count",parent:["counter"],component:"single"},{title:"greater than",name:"greater_than_count",parent:["counter"],component:"single"},{title:"less than",name:"less_than",parent:["numeric"],component:"single"},{title:"greater than",name:"greater_than",parent:["numeric"],component:"single"},{title:"between",name:"between",parent:["numeric"],component:"double"},{title:"not between",name:"not_between",parent:["numeric"],component:"double"},{title:"contains",name:"contains",parent:["string"],component:"single"},{title:"starts with",name:"starts_with",parent:["string"],component:"single"},{title:"ends with",name:"ends_with",parent:["string"],component:"single"},{title:"equal to",name:"equal_to",parent:["enum"],component:"enum"},{title:"not equal to",name:"not_equal_to",parent:["enum"],component:"enum"},{title:"in the past",name:"in_the_past",parent:["datetime"],component:"datetime_1"},{title:"in the next",name:"in_the_next",parent:["datetime"],component:"datetime_1"},{title:"in the period",name:"in_the_period",parent:["datetime"],component:"datetime_2"}]}}},na=(n("99co"),qo(ea,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"filterable"},[n("div",{staticClass:"card d-print-none"},[n("div",{staticClass:"card-header d-flex"},[t._t("preaction")],2)]),t._v(" "),t.active?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body filter"},[t._l(t.filterCandidates,(function(e,r){return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-4 form-group filter-column"},[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.column,expression:"filter.column"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"column",n.target.multiple?r:r[0])},function(e){return t.selectColumn(r)}]}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v(t._s(t._f("trans")("Select a filter")))]),t._v(" "),t._l(t.allowedFilters,(function(e,r){return n("optgroup",{attrs:{label:t._f("trans")(t._f("title")(r))}},t._l(e,(function(e,r){return n("option",{domProps:{value:r}},[t._v(t._s(t._f("trans")(t._f("title")(r))))])})),0)}))],2),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"filter-remove btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return t.removeFilter(r)}}},[t._v("x")])])])]),t._v(" "),n("div",{staticClass:"col col-md-4 form-group filter-operator"},[e.column?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.operator,expression:"filter.operator"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"operator",n.target.multiple?r:r[0])},function(e){return t.selectOperator(r)}]}},t._l(t.fetchOperators(e),(function(e){return n("option",{domProps:{value:e.name}},[t._v(t._s(t._f("trans")(e.title)))])})),0)]:t._e()],2),t._v(" "),n("div",{staticClass:"col col-md-4 form-group filter-query"},[n("div",{staticClass:"input-group"},["single"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("div",{staticClass:"invalid-feedback"},[t._v("Valid first name is required.")])]:t._e(),t._v(" "),"double"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_2,expression:"filter.query_2"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_2},on:{input:function(n){n.target.composing||t.$set(e,"query_2",n.target.value)}}})]:t._e(),t._v(" "),"enum"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},t._l(e.values,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(e)))])})),0)]:t._e(),t._v(" "),"boolean"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"0"}},[t._v("Нет")]),t._v(" "),n("option",{attrs:{value:"1"}},[t._v("Да")])])]:t._e(),t._v(" "),"datetime_1"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_2,expression:"filter.query_2"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_2",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"hours"}},[t._v(t._s(t._f("trans")("hours")))]),t._v(" "),n("option",{attrs:{value:"days"}},[t._v(t._s(t._f("trans")("days")))]),t._v(" "),n("option",{attrs:{value:"months"}},[t._v(t._s(t._f("trans")("months")))]),t._v(" "),n("option",{attrs:{value:"years"}},[t._v(t._s(t._f("trans")("years")))])])]:t._e(),t._v(" "),"datetime_2"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"yesterday"}},[t._v(t._s(t._f("trans")("yesterday")))]),t._v(" "),n("option",{attrs:{value:"today"}},[t._v(t._s(t._f("trans")("today")))]),t._v(" "),n("option",{attrs:{value:"tomorrow"}},[t._v(t._s(t._f("trans")("tomorrow")))]),t._v(" "),n("option",{attrs:{value:"last_month"}},[t._v(t._s(t._f("trans")("last month")))]),t._v(" "),n("option",{attrs:{value:"this_month"}},[t._v(t._s(t._f("trans")("this month")))]),t._v(" "),n("option",{attrs:{value:"next_month"}},[t._v(t._s(t._f("trans")("next month")))]),t._v(" "),n("option",{attrs:{value:"last_year"}},[t._v(t._s(t._f("trans")("last year")))]),t._v(" "),n("option",{attrs:{value:"this_year"}},[t._v(t._s(t._f("trans")("this year")))]),t._v(" "),n("option",{attrs:{value:"next_year"}},[t._v(t._s(t._f("trans")("next year")))])])]:t._e()],2)])])})),t._v(" "),n("div",{staticClass:"filter-controls form-group d-flex"},[n("button",{staticClass:"btn btn-outline-primary mr-auto",attrs:{type:"button"},on:{click:t.addFilter}},[t._v(t._s(t._f("trans")("Add filter")))]),t._v(" "),t.filterCandidates.length&&t.filterCandidates[0].query_1?[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"button"},on:{click:t.applyFilter}},[t._v(t._s(t._f("trans")("Apply")))])]:t._e(),t._v(" "),t.appliedFilters.length>0?n("button",{staticClass:"btn btn-outline-dark ml-2",attrs:{type:"reset"},on:{click:t.resetFilter}},[t._v(t._s(t._f("trans")("Reset")))]):t._e()],2)],2)]):t._e(),t._v(" "),n("div",{staticClass:"card card-table"},[t.collection.length?n("div",{staticClass:"card-header"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-6"},[n("pagination",{staticClass:"justify-content-eend",on:{paginate:t.changePage}})],1),t._v(" "),n("div",{staticClass:"col col-md-6"},[n("div",{staticClass:"d-flex"},[n("div",{staticClass:"has-float-label ml-auto mr-2"},[n("label",[t._v(t._s(t._f("trans")("Count")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.query.limit,expression:"query.limit"}],staticClass:"form-control",attrs:{disabled:t.loading},on:{input:function(e){return t.changePage(1)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.query,"limit",e.target.multiple?n:n[0])}}},t._l(t.limits,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"has-float-label"},[n("label",[t._v(t._s(t._f("trans")("Order by")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.query.order_column,expression:"query.order_column"}],staticClass:"form-control",attrs:{disabled:t.loading},on:{input:function(e){return t.changePage(1)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.query,"order_column",e.target.multiple?n:n[0])}}},[t._l(t.orderableColumns,(function(e){return[n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(t._f("title")(e))))])]}))],2),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary bg-white",attrs:{type:"button"},on:{click:t.changeOrderDirection}},["asc"===t.query.order_direction?n("span",[t._v("↑")]):n("span",[t._v("↓")])])])])])])])])]):t._e(),t._v(" "),n("div",{staticClass:"card-body table-responsive"},[t.collection.length?n("table",{staticClass:"table table-sm table-hover"},[n("thead",[t._t("thead")],2),t._v(" "),n("tbody",[t._l(t.collection,(function(e){return t._t("row",null,{row:e})}))],2),t._v(" "),n("tfoot",[t._t("tfoot")],2)]):t.loading?n("p",{staticClass:"alert alert-info text-center"},[t._v("Список загружается, пожалуйста, подождите ...")]):n("p",{staticClass:"alert alert-info text-center"},[t._v("Нет информации для отображения.")])]),t._v(" "),t.collection.length?n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-6"},[n("pagination",{staticClass:"justify-content-eend",on:{paginate:t.changePage}})],1),t._v(" "),t.massAction?n("div",{staticClass:"col col-md-6"},[n("div",{staticClass:"d-flex d-print-none"},[n("div",{staticClass:"has-float-label ml-auto"},[n("label",{attrs:{for:""}},[t._v(t._s(t._f("trans")("Mass action")))]),t._v(" "),t._t("action")],2)])]):t._e()])]):t._e()])])}),[],!1,null,null,null).exports);function ra(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function ia(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ra(o,r,i,a,s,"next",t)}function s(t){ra(o,r,i,a,s,"throw",t)}a(void 0)}))}}var oa,aa,sa=qo({name:"articles",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{selected:[],selectedAll:!1,massAction:"",filterable:{model:this.$props.model,active:!1,massAction:!0}}},computed:{editpage:function(){return function(t){return{name:"articles.edit",params:{id:t.id}}}},classState:function(){return function(t){return{published:"fa fa-check text-success",unpublished:"fa fa-times text-warning",draft:"fa fa-ban text-danger"}[t]||"fa fa-question text-danger"}},classIsFavorite:function(){return function(t){return t?"fa fa-star text-warning":"fa fa-star-o text-muted"}},classIsCatpinned:function(){return function(t){return t?"fa fa-thumb-tack fa-rotate-90 text-danger":"fa fa-thumb-tack text-muted"}},classOnMainpage:function(){return function(t){return t?"fa fa-home text-success":"fa fa-home text-muted"}}},mounted:(aa=ia(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("articles");case 2:case"end":return t.stop()}}),t,this)}))),function(){return aa.apply(this,arguments)}),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{toggleFilter:function(){this.filterable.active=!this.filterable.active},toggleStateArticle:function(t){var e="published"!==t.state?"published":"draft";t.categories.length&&this.massUpdate([t.id],e)},selectAll:function(){if(this.selected=[],!this.selectedAll){var t=this.$props.model.all();this.selected=t.map((function(t){return t.id}))}},applyMassAction:function(){if(!this.selected.length)return Notification.warning({message:"Пожалуйста, выберите записи."});if(!this.massAction)return Notification.warning({message:"Пожалуйста, выберите действие."});var t=this.massAction.toString();return t.startsWith("delete")?this.massDelete(this.selected,t):this.massUpdate(this.selected,t)},massUpdate:(oa=ia(i.a.mark((function t(e,n){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O("".concat(Pageinfo.api_url,"/articles"),{articles:e,mass_action:n});case 2:return r=t.sent,t.next=5,this.$props.model.insertOrUpdate({where:function(t){return e.includes(t.id)},data:r.data.data});case 5:t.sent;case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return oa.apply(this,arguments)}),massDelete:function(t){var e=this;t.map((function(t){return e.destroy({id:t})}))},create:function(){var t=prompt("Укажите заголовок новой записи: ","Черновик");t&&this.$props.model.$create({data:{title:t}})},destroy:function(t){confirm("Вы точно хотите удалить эту запись [".concat(t.id,"] с прикрепленными файлами?"))&&this.$props.model.$delete({params:{id:t.id}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.create}},[n("i",{staticClass:"fa fa-plus"})]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"},[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"categories"},title:"Категории"}},[n("i",{staticClass:"fa fa-folder-open-o"})]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields"},title:"Дополнительные поля"}},[n("span",{staticClass:"as-icon"},[t._v("χφ")])]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"articles.settings"},title:"Настройки"}},[n("i",{staticClass:"fa fa-cogs"})])],1),t._v(" "),n("div",{staticClass:"btn-group ml-auto"},[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.toggleFilter}},[n("i",{staticClass:"fa fa-filter"})]),t._v(" "),n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",onclick:"window.print()"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Заголовок")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Категория")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Автор")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("th",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-comments"})]),t._v(" "),n("th",{staticClass:"hidden-xs"}),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("th",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{staticClass:"d-block",attrs:{to:t.editpage(r)}},[t._v(t._s(r.title))]),t._v("\n "+t._s(r.created_at)+" "+t._s(r.updated_at||"")+"\n ")],1),t._v(" "),n("td",{staticClass:"hidden-xs"},t._l(r.categories,(function(e){return n("span",{staticClass:"cat-links mr-1"},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])})),0),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.user&&r.user.name))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.views))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.comments_count))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[r.files_count>0?n("i",{staticClass:"fa fa-paperclip",attrs:{title:"К записи прикреплены файлы."}}):t._e()]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.toggleStateArticle(r)}}},[n("i",{class:t.classState(r.state),attrs:{title:t.__(r.state)}})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"is_favorite")}}},[n("i",{class:t.classIsFavorite(r.is_favorite)})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"is_catpinned")}}},[n("i",{class:t.classIsCatpinned(r.is_catpinned)})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"on_mainpage")}}},[n("i",{class:t.classOnMainpage(r.on_mainpage)})]),t._v(" "),"published"===r.state?n("a",{staticClass:"btn btn-link",attrs:{href:r.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})]):n("button",{staticClass:"btn btn-link",attrs:{type:"button",disabled:""}},[n("i",{staticClass:"fa fa-eye-slash text-muted"})]),t._v(" "),n("router-link",{staticClass:"btn btn-link",attrs:{to:t.editpage(r)}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:r.id,checked:Array.isArray(t.selected)?t._i(t.selected,r.id)>-1:t.selected},on:{change:function(e){var n=t.selected,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=r.id,s=t._i(n,a);i.checked?s<0&&(t.selected=n.concat([a])):s>-1&&(t.selected=n.slice(0,s).concat(n.slice(s+1)))}else t.selected=o}}})])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Заголовок")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Категория")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Автор")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("td",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-comments"})]),t._v(" "),n("td",{staticClass:"hidden-xs"}),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"action",fn:function(){return[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.massAction,expression:"massAction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.massAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v("Выберите действие")]),t._v(" "),n("optgroup",{attrs:{label:"Статус"}},[n("option",{attrs:{value:"published"}},[t._v("Опубликовать")]),t._v(" "),n("option",{attrs:{value:"unpublished"}},[t._v("Отправить на модерацию")]),t._v(" "),n("option",{attrs:{value:"draft"}},[t._v("Сохранить как черновик")])]),t._v(" "),n("optgroup",{attrs:{label:"Главная страница"}},[n("option",{attrs:{value:"on_mainpage"}},[t._v("Отобразить/скрыть на главной")])]),t._v(" "),n("optgroup",{attrs:{label:"Комментарии"}},[n("option",{attrs:{value:"allow_com"}},[t._v("Разрешить/запретить комментарии")])]),t._v(" "),n("optgroup",{attrs:{label:"Дата"}},[n("option",{attrs:{value:"currdate"}},[t._v("Установить текущую дату")])]),t._v(" "),n("optgroup",{attrs:{label:"Удалить"}},[n("option",{attrs:{value:"delete"}},[t._v("Удалить отмеченные")])])]),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"submit"},on:{click:t.applyMassAction}},[t._v("Применить")])])])]},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,la=n("kzlf"),ca=n.n(la),ua=n("V5G8"),fa=n.n(ua),da={name:"toolbar",components:{},props:{},data:function(){return{}},created:function(){},mounted:function(){this.$nextTick((function(){setTimeout((function(){}),100)}))},methods:{}},pa=(n("Cyu2"),qo(da,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"toolbar-container"}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),n("span",{staticClass:"ql-formats"},[n("select",{staticClass:"ql-header"},[n("option",{attrs:{selected:"selected"}},[t._v(t._s(t._f("trans")("Normal")))]),t._v(" "),n("option",{attrs:{value:"4"}},[t._v(t._s(t._f("trans")("Heading 4")))]),t._v(" "),n("option",{attrs:{value:"3"}},[t._v(t._s(t._f("trans")("Heading 3")))]),t._v(" "),n("option",{attrs:{value:"2"}},[t._v(t._s(t._f("trans")("Heading 2")))])])]),t._v(" "),t._m(5),t._v(" "),n("div",{attrs:{id:"sub-toolbar"}},[t._m(6),t._v(" "),t._m(7),t._v(" "),n("span",{staticClass:"ql-formats"},[n("select",{ref:"ql-shortcodes",staticClass:"ql-shortcodes"},[n("option",{attrs:{value:"[[app_url]]"}},[t._v(t._s(t._f("trans")("app_url")))]),t._v(" "),n("option",{attrs:{value:"[[organization]]"}},[t._v(t._s(t._f("trans")("organization")))]),t._v(" "),n("option",{attrs:{value:"[[address]]"}},[t._v(t._s(t._f("trans")("address")))]),t._v(" "),n("option",{attrs:{value:"[[contact_telephone]]"}},[t._v(t._s(t._f("trans")("contact_telephone")))]),t._v(" "),n("option",{attrs:{value:"[[contact_email]]"}},[t._v(t._s(t._f("trans")("contact_email")))])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("select",{staticClass:"ql-save"},[e("option",{attrs:{value:'{"state":"published"}'}},[this._v("Опубликовать")]),this._v(" "),e("option",{attrs:{value:'{"state":"unpublished"}'}},[this._v("Отправить на модерацию")]),this._v(" "),e("option",{attrs:{value:'{"state":"draft"}'}},[this._v("Оставить в черновиках")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-bold"}),this._v(" "),e("button",{staticClass:"ql-italic"}),this._v(" "),e("button",{staticClass:"ql-underline d-none d-md-block"}),this._v(" "),e("button",{staticClass:"ql-strike d-none d-md-block"}),this._v(" "),e("button",{staticClass:"ql-script d-none d-md-block",attrs:{value:"sub"}}),this._v(" "),e("button",{staticClass:"ql-script d-none d-md-block",attrs:{value:"super"}}),this._v(" "),e("button",{staticClass:"ql-link"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats d-none d-md-inline-block"},[e("select",{staticClass:"ql-color"}),this._v(" "),e("select",{staticClass:"ql-background"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-list",attrs:{value:"ordered"}}),this._v(" "),e("button",{staticClass:"ql-list",attrs:{value:"bullet"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats d-none d-md-inline-block"},[e("button",{staticClass:"ql-align",attrs:{value:""}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"center"}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"right"}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"justify"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-clean"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-blockquote"}),this._v(" "),e("button",{staticClass:"ql-code-block"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-image"})])}],!1,null,null,null).exports);function ha(t){return(ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ma(t,e){for(var n=0;n({}),computed:{hasHeaderSlot(){return!!this.$slots.modal__header},sizeClass(){return"modal__dialog-"+this.$props.size}},created(){document.body.classList.add("overflow-hidden"),document.addEventListener("keydown",this.handleEscape)},destroyed(){document.body.classList.remove("overflow-hidden"),document.removeEventListener("keydown",this.handleEscape)},methods:{handleClick(t){t.target.classList.contains("modal__overlay")&&this.close()},handleEscape(t){t.stopPropagation(),27==t.keyCode&&this.close()},close(){this.$emit("close")}}},ja=(n("Wncm"),qo(Sa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"modal__fade"}},[n("div",{staticClass:"modal__overlay",on:{click:t.handleClick}},[n("div",{staticClass:"modal__dialog",class:t.sizeClass},[n("div",{staticClass:"modal__content"},[t.hasHeaderSlot?n("div",{staticClass:"modal__header"},[n("h5",{staticClass:"modal__title"},[t._t("modal__header")],2),t._v(" "),n("button",{staticClass:"modal__close",attrs:{type:"button"},on:{click:t.close}},[t._v("×")])]):t._e(),t._v(" "),n("div",{staticClass:"modal__body"},[t._t("modal__body")],2),t._v(" "),n("div",{staticClass:"modal__footer"},[t._t("modal__footer",[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.close}},[t._v("Close")])])],2)])])])])}),[],!1,null,"5236e476",null).exports),Ta={show:(t={})=>new(f.a.extend(ja))({el:document.createElement("div"),propsData:Object.assign({active:!0},t)})};ja.install=function(t,e){t.prototype.$modal=Ta};var Na=ja,Pa={name:"image-preview",components:{modal:Na},props:{image_id:{type:Number,default:null}},data:function(){return{modalShown:!1}},computed:{image:function(){return jn.query().withAll().find(this.image_id)}},methods:{editImage:function(){this.modalShown=!0},updateImage:function(){var t=this;jn.$update({params:{id:this.image_id},data:{title:this.image.title,description:this.image.description}}).then((function(e){t.closeModal()}))},deleteImage:function(){confirm("Вы уверены, что хотите удалить этот файл с сервера?")&&(this.$emit("destroy"),jn.$delete({params:{id:this.image_id}}))},closeModal:function(){this.modalShown=!1}}};n("jfqp");function La(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var Ma,$a={name:"image-uploader",components:{"image-preview":qo(Pa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[t.image.id?n("div",{staticClass:"image__preview"},[n("img",{attrs:{src:t.image.url}}),t._v(" "),n("div",{staticClass:"btn-toolbar"},[n("button",{staticClass:"btn btn-sm btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.editImage(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-sm btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.deleteImage(e)}}},[n("i",{staticClass:"fa fa-trash"})])])]):t._e(),t._v(" "),t.modalShown?n("modal",{on:{close:function(t){}}},[n("template",{slot:"modal__header"},[t._v("Редактирование изображения")]),t._v(" "),n("template",{slot:"modal__body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Заголовок")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.image.title,expression:"image.title"}],staticClass:"form-control",attrs:{type:"text",autocomplete:"off",required:""},domProps:{value:t.image.title},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.image,"title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Описание")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.image.description,expression:"image.description"}],staticClass:"form-control noresize",attrs:{rows:"4"},domProps:{value:t.image.description},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.image,"description",e.target.value)}}})])]),t._v(" "),n("template",{slot:"modal__footer"},[n("button",{staticClass:"btn btn-outline-success mr-2",attrs:{type:"button"},on:{click:t.updateImage}},[t._v("Сохранить")]),t._v(" "),n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Отменить")])])],2):t._e()],1)}),[],!1,null,"6b28d2b2",null).exports},props:{value:{type:Number,default:null}},data:function(){return{state:null,errors:[]}},methods:{upload:(Ma=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){La(o,r,i,a,s,"next",t)}function s(t){La(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(e){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.state="uploading",this.errors=[],(n=new FormData).append("file",this.takeFileFromInput(e,"image.*")),t.next=7,jn.$create({data:n});case 7:r=t.sent,this.state="uploaded",this.$emit("input",r.id),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),!t.t0.response&&console.log(t.t0),this.state="error",this.destroy();case 17:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(t){return Ma.apply(this,arguments)}),takeFileFromInput:function(t,e){var n=t.target.files;if(!n.length)throw new Error("Необходимо выбрать файл.");if(!n[0].type.match(e))throw new Error("Выбранный вами файл в данный момент не поддерживается.");return n[0]},destroy:function(){this.$emit("input",null)},onClickHandler:function(t){}}},qa=(n("4erp"),qo($a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"image__uploader",attrs:{for:"image__uploader_"+t._uid},on:{click:t.onClickHandler}},[t.value?n("image-preview",{attrs:{image_id:t.value},on:{destroy:t.destroy}}):n("div",{staticClass:"image__uploader__states"},[n("input",{staticClass:"image__uploader__input",attrs:{id:"image__uploader_"+t._uid,type:"file",accept:"image/*"},on:{change:t.upload}}),t._v(" "),"uploading"==t.state?n("div",{staticClass:"text-primary"},[n("i",{staticClass:"fa fa-4x fa-spinner fa-spin"})]):"error"==t.state?n("div",{staticClass:"text-warning"},[n("i",{staticClass:"fa fa-4x fa-exclamation-triangle"})]):n("div",[n("i",{staticClass:"fa fa-4x fa-file-image-o"})])])],1)}),[],!1,null,"abb1b27c",null).exports),Ra=qo({name:"input-datetime-local",props:{value:{type:[String,Date],default:null,required:!1}},data:function(){return{}},computed:{localValue:function(){return this.$props.value&&this.$props.value.replace(" ","T").slice(0,16)}},methods:{onInputHandler:function(t){this.$emit("input",t.target.value)}}},(function(){var t=this.$createElement;return(this._self._c||t)("input",{attrs:{type:"datetime-local"},domProps:{value:this.localValue},on:{input:this.onInputHandler}})}),[],!1,null,null,null).exports,Ia={props:{value:{type:Array,default:[]}},data:function(){return{}},computed:{categories:function(){var t=Un.query().orderBy("position","asc").all(),e=this.getRootCategories(t);return this.getNestedCategories(e,0,t)}},methods:{getRootCategories:function(t){return t.filter((function(t){return!t.parent_id}))},getNestedCategories:function(t,e,n){var r=this,i=[];return t.forEach((function(t,o,a){(t=t.$toJson()).depth=e,t.disabled="string"==typeof t.alt_url,t.selected=r.$props.value.includes(t.id),t.title=" — ".repeat(t.depth)+t.title,i.push(t);var s=n.filter((function(e){return e.parent_id===t.id}));s.length&&(i=i.concat(r.getNestedCategories(s,e+1,n)))})),i},handleChange:function(t){this.$emit("input",Array.from(t.target.options).filter((function(t){return t.selected})).map((function(t){return Number(t.value)})))}}},Fa=(n("uvSl"),qo(Ia,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("select",{staticClass:"form-control",attrs:{multiple:""},on:{change:t.handleChange}},[t._l(t.categories,(function(e,r){return[n("option",{attrs:{disabled:e.disabled},domProps:{value:e.id,selected:e.selected}},[t._v(t._s(e.title))])]}))],2)}),[],!1,null,"eb1ad1ee",null));function Da(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function za(t){for(var e=1;e0},isPublished:function(){return"published"===this.form.state},article:function(){return this.$props.model.query().withAllRecursive().find(this.$props.id)},classState:function(){return function(t){return{published:"text-success",unpublished:"text-warning"}[t]||"text-danger"}},titleState:function(){return function(t){return{published:"опубликована",unpublished:"на модерации"}[t]||"черновик"}}}),watch:{"form.title":function(t,e){document.title=t}},created:function(){this.$props.model.$get({params:{id:this.$props.id}}).then(this.fillForm)},beforeDestroy:function(){clearTimeout(this.saveTimer),this.$props.model.deleteAll()},methods:{fillForm:function(t){this.form=Object.assign({},this.form,t),this.form.categories=this.form.categories.map((function(t){return t.id})),this.form.tags=this.form.tags.map((function(t){return t.title})).join(", "),this.saveTimer=setTimeout(this.update,this.saveInterval)},updateAttributesFromJson:function(t){for(var e in t)this.form.hasOwnProperty(e)&&(this.form[e]=t[e]);this.update()},updateContent:function(t){this.form.content=t},updateImage:function(t){this.form.image_id=t},update:function(){clearTimeout(this.saveTimer),this.model.$update({params:{id:this.$props.id},data:za({},this.form,{date_at:this.date_at})}).then(this.fillForm).catch((function(t){})).then((function(){}))},fileDelete:function(t){if(this.form.image_id!==t.id&&confirm("Вы точно хотите удалить это изображение [".concat(t.id,"] с сервера?"))){var e=Da(this.$children.find((function(t){return t.editor&&t.editor instanceof ca.a})).editor.root.querySelectorAll("figure")).slice(0).find((function(e){return+e.dataset.id===t.id}));e&&e.remove(),jn.$delete({params:{id:t.id}})}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.update(e)},keydown:function(e){return(e.type.indexOf("key")||83===e.keyCode)&&e.ctrlKey?(e.preventDefault(),t.update(e)):null}}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 col-md-6 col-lg-3 mb-2 order-first"},[n("image-uploader",{on:{input:this.update},model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-12 col-lg-5 mb-2 order-last"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Заголовок")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",placeholder:"Заголовок записи ...",autocomplete:"off",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}}),t._v(" "),t.isPublished?n("div",{staticClass:"input-group-append"},[n("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.form.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})])]):t._e()])]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Предисловие")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.teaser,expression:"form.teaser"}],staticClass:"form-control noresize",attrs:{rows:"4",maxlength:"255",placeholder:"Заинтересуйте свою аудиторию ..."},domProps:{value:t.form.teaser},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"teaser",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-6 col-lg-4 mb-2 order-lg-last"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label",attrs:{for:"catmenu"}},[t._v("Категории")]),t._v(" "),n("categories-items",{attrs:{selected:t.form.categories},model:{value:t.form.categories,callback:function(e){t.$set(t.form,"categories",e)},expression:"form.categories"}})],1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 mb-2"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"card"},[t._m(0),t._v(" "),n("div",{staticClass:"c-ollapse",attrs:{id:"card_files"}},[t.article.files?n("ul",t._l(t.article.files,(function(e){return n("li",{on:{click:function(n){return t.fileDelete(e)}}},[t._v(t._s(e.id))])})),0):t._e()])]),t._v(" "),n("quill-editor",{attrs:{attachment:t.attachment,value:t.form.content},on:{input:t.updateContent,json:t.updateAttributesFromJson}})],1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 col-md-6 col-lg-8 mb-2"},[n("div",{attrs:{id:"accordion"}},[t.setting.manual_meta?n("div",{staticClass:"card"},[t._m(1),t._v(" "),n("div",{staticClass:"collapse",attrs:{id:"card_meta"}},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Описание")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"3",maxlength:"255"},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Ключевые слова")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.keywords,expression:"form.keywords"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",autocomplete:"off"},domProps:{value:t.form.keywords},on:{input:function(e){e.target.composing||t.$set(t.form,"keywords",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Инструкции для поисковых роботов")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.robots,expression:"form.robots"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"robots",e.target.multiple?n:n[0])}}},[n("option",{domProps:{value:null}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"noindex"}},[t._v("noindex")]),t._v(" "),n("option",{attrs:{value:"nofollow"}},[t._v("nofollow")]),t._v(" "),n("option",{attrs:{value:"none"}},[t._v("none")])])])])])]):t._e(),t._v(" "),n("div",{staticClass:"card"},[t._m(2),t._v(" "),n("div",{staticClass:"collapse",attrs:{id:"card_tags"}},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Теги")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tags,expression:"form.tags"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",autocomplete:"off"},domProps:{value:t.form.tags},on:{input:function(e){e.target.composing||t.$set(t.form,"tags",e.target.value)}}})])])])])]),t._v(" "),n("pre",[t._v(t._s(t.form))])]),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-6 col-lg-4 mb-2"},[n("div",{staticClass:"card card-default card-table"},[n("div",{staticClass:"card-header"},[t._v("Сводная информация")]),t._v(" "),n("div",{staticClass:"card-body table-responsive"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[t._v("Автор")]),t._v(" "),n("td",[t._v(t._s(t.form.user&&t.form.user.name))])]),t._v(" "),n("tr",[n("td",[t._v("Состояние")]),t._v(" "),n("td",[n("span",{class:t.classState(t.form.state)},[t._v(t._s(t.titleState(t.form.state)))])])]),t._v(" "),n("tr",[n("td",[t._v("Создание")]),t._v(" "),n("td",[t._v(t._s(t.form.created_at))])]),t._v(" "),n("tr",[n("td",[t._v("Обновление")]),t._v(" "),n("td",[t._v(t._s(t.form.updated_at))])])])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Параметры публикации")]),t._v(" "),n("div",{staticClass:"card-body"},[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.on_mainpage,expression:"form.on_mainpage"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.on_mainpage)?t._i(t.form.on_mainpage,null)>-1:t.form.on_mainpage},on:{change:function(e){var n=t.form.on_mainpage,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"on_mainpage",n.concat([null])):o>-1&&t.$set(t.form,"on_mainpage",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"on_mainpage",i)}}}),t._v(" Отобразить на главной")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_pinned,expression:"form.is_pinned"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_pinned)?t._i(t.form.is_pinned,null)>-1:t.form.is_pinned},on:{change:function(e){var n=t.form.is_pinned,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_pinned",n.concat([null])):o>-1&&t.$set(t.form,"is_pinned",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_pinned",i)}}}),t._v(" Прикрепить на главной")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_catpinned,expression:"form.is_catpinned"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_catpinned)?t._i(t.form.is_catpinned,null)>-1:t.form.is_catpinned},on:{change:function(e){var n=t.form.is_catpinned,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_catpinned",n.concat([null])):o>-1&&t.$set(t.form,"is_catpinned",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_catpinned",i)}}}),t._v(" Прикрепить в категории")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_favorite,expression:"form.is_favorite"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_favorite)?t._i(t.form.is_favorite,null)>-1:t.form.is_favorite},on:{change:function(e){var n=t.form.is_favorite,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_favorite",n.concat([null])):o>-1&&t.$set(t.form,"is_favorite",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_favorite",i)}}}),t._v(" Добавить в избранное")])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Управление временем публикации")]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio"},domProps:{value:null,checked:t._q(t.date_at,null)},on:{change:function(e){t.date_at=null}}}),t._v(" Естесственное формирование даты")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio",value:"currdate"},domProps:{checked:t._q(t.date_at,"currdate")},on:{change:function(e){t.date_at="currdate"}}}),t._v(" Установить текущую дату")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio",value:"customdate"},domProps:{checked:t._q(t.date_at,"customdate")},on:{change:function(e){t.date_at="customdate"}}}),t._v(" Установить дату вручную")])]),t._v(" "),"customdate"===t.date_at?n("div",{staticClass:"form-group"},[n("input-datetime-local",{staticClass:"form-control",model:{value:t.form.created_at,callback:function(e){t.$set(t.form,"created_at",e)},expression:"form.created_at"}})],1):t._e()])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Комментирование")]),t._v(" "),n("div",{staticClass:"card-body"},[n("select",{directives:[{name:"model",rawName:"v-model.number",value:t.form.allow_com,expression:"form.allow_com",modifiers:{number:!0}}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(e){var n="_value"in e?e._value:e.value;return t._n(n)}));t.$set(t.form,"allow_com",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"2"}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"1"}},[t._v("Разрешить")]),t._v(" "),n("option",{attrs:{value:"0"}},[t._v("Запретить")])])])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_files","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-files-o text-muted"}),this._v(" Прикрепленные файлы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_meta","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-header text-muted"}),this._v(" Мета данные")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_tags","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-tags text-muted"}),this._v(" Список тегов")])])}],!1,null,null,null).exports;function Ka(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Va(t){for(var e=1;e0}}),mounted:function(){Nr.$get({params:{id:this.entity}}).then(this.fillForm)},beforeDestroy:function(){Nr.deleteAll()},methods:{fillForm:function(t){t.map(this.addField)},addField:function(t){this.form=Object.assign({},this.form,Ga({},t.name,t.value))},onSubmit:function(t){var e=t.target;this.hignlightInvalidInput(e,e.elements),e.checkValidity()&&Nr.$update({params:{id:this.entity},data:Va({},this.form)})},hignlightInvalidInput:function(t,e){var n=Ka(e).slice(0);n.forEach((function(t){"checkbox"!==t.type&&t.setAttribute("required","required");var e=t.validity&&t.validity.valid;t.classList.toggle("is-invalid",!e)}));var r=n.find((function(t){return t.classList.contains("is-invalid")}));if(!r)return!0;var i=r.closest(".tab-pane"),o=t.querySelector('[href="#'.concat(i.id,'"]'));i&&o&&o.click(),r.focus(),r.validationMessage&&Notification.warning({message:r.validationMessage})}}}),Ya=[{path:"/articles",name:"articles",component:sa,meta:{title:"Список записей"},props:function(t){return{model:yr}}},{path:"/articles/:id/edit",name:"articles.edit",component:Ha,meta:{title:"Редактирование записи"},props:function(t){return{model:yr,id:parseInt(t.params.id,10)}}},{path:"/articles/settings",name:"articles.settings",component:qo({name:"articles-settings",extends:Za,data:function(){return{entity:"articles"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.views_used,expression:"form.views_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.views_used)?t._i(t.form.views_used,null)>-1:t.form.views_used},on:{change:function(e){var n=t.form.views_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"views_used",n.concat([null])):o>-1&&t.$set(t.form,"views_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"views_used",i)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[n("i",{staticClass:"fa fa-th-list"}),t._v(" Мета теги главной "),n("a",{attrs:{href:t.url("articles"),target:"_blank"}},[t._v("страницы записей")]),t._v(" на сайте")]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title,expression:"form.meta_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_description,expression:"form.meta_description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_keywords,expression:"form.meta_keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(6),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.paginate,expression:"form.paginate",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"8"},domProps:{value:t.form.paginate},on:{input:function(e){e.target.composing||t.$set(t.form,"paginate",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.order_by,expression:"form.order_by"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"order_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"id"}},[t._v("Идентификатор")]),t._v(" "),n("option",{attrs:{value:"title"}},[t._v("Заголовок")]),t._v(" "),n("option",{attrs:{value:"created_at"}},[t._v("Создание")]),t._v(" "),n("option",{attrs:{value:"updated_at"}},[t._v("Обновление")]),t._v(" "),n("option",{attrs:{value:"views"}},[t._v("Количество просмотров")]),t._v(" "),n("option",{attrs:{value:"comments_count"}},[t._v("Количество комментариев")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.direction,expression:"form.direction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"direction",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"desc"}},[t._v("По убыванию")]),t._v(" "),n("option",{attrs:{value:"asc"}},[t._v("По возрастанию")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(10),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.teaser_length,expression:"form.teaser_length",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"255"},domProps:{value:t.form.teaser_length},on:{input:function(e){e.target.composing||t.$set(t.form,"teaser_length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-create"}},[n("div",{staticClass:"card card-default"},[t._m(11),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.save_interval,expression:"form.save_interval"}],staticClass:"form-control",attrs:{type:"number",min:"60"},domProps:{value:t.form.save_interval},on:{input:function(e){e.target.composing||t.$set(t.form,"save_interval",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.manual_slug,expression:"form.manual_slug"}],staticClass:"form-control",attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(t.form.manual_slug)?t._i(t.form.manual_slug,null)>-1:t.form.manual_slug},on:{change:function(e){var n=t.form.manual_slug,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"manual_slug",n.concat([null])):o>-1&&t.$set(t.form,"manual_slug",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"manual_slug",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.manual_meta,expression:"form.manual_meta"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.manual_meta)?t._i(t.form.manual_meta,null)>-1:t.form.manual_meta},on:{change:function(e){var n=t.form.manual_meta,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"manual_meta",n.concat([null])):o>-1&&t.$set(t.form,"manual_meta",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"manual_meta",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(15),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item "},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-create","data-toggle":"tab"}},[this._v("Создание записи")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вести подсчет просмотров записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Дополнительный запрос к БД при нахождении на целевой странице записи.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет тайтла — нет поискового трафика.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Здесь можно ввести краткое описание страницы записей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Здесь можно ввести основные ключевые слова.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры по умолчанию")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество записей")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Число строк по умолчанию, извлекаемых из базы данных, для отображения на одной отдельно взятой странице или виджете.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Сортировка записей")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Сортировка записей при отображении на одной отдельно взятой странице или виджете.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Порядок сортировки")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество символов в аннотации к записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Если аннотация не указана, то будет сформирована путем обрезки начальной части текста записи.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Интервал автосохранения записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Задаётся в секундах.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ручное создание ярлыка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет - автоматическое создание.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ручное формирование мета данных")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Возможность самостоятельно задавать мета: robots, description, keywords персонально для каждой страницы.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки записей"}}];function Xa(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ja(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Xa(o,r,i,a,s,"next",t)}function s(t){Xa(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Qa,ts,es={name:"categories",components:{},props:{model:{type:Function,required:!0}},data:function(){return{dragging:-1,loading:!1,hasTouch:"ontouchstart"in window}},computed:{categories:function(){return this.model.query().withAll().orderBy("position","asc").get()},isDragging:function(){return this.dragging>-1}},created:(ts=Ja(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.init();case 1:case"end":return t.stop()}}),t,this)}))),function(){return ts.apply(this,arguments)}),methods:{init:function(){console.log(this.categories)},create:function(){},dragStart:function(t,e){e.dataTransfer.setData("text/plain",t),e.dataTransfer.dropEffect="move",this.dragging=t},dragEnter:function(t){},dragLeave:function(t){},dragEnd:function(t){this.dragging=-1},dragFinish:function(t,e){this.moveItem(this.dragging,t)},moveItem:function(t,e){var n=this.categories,r=n.find((function(e,n,r){return e.id===t})),i=n.find((function(t,n,r){return t.id===e})),o=Math.min(r.position,i.position),a=Math.max(r.position,i.position);this.$props.model.update({where:function(t){return(e=t.position)>=o&&e<=a&&t.id!==r.id;var e},data:function(t){t.position=r.position0},isEditMode:function(){return this.$props.id>0}}),mounted:function(){var t=is(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.$props.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:(ls=is(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:as({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:as({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,as({},n));case 11:case"end":return t.stop()}}),t,this)}))),function(t){return ls.apply(this,arguments)})}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)},keydown:function(e){return(e.type.indexOf("key")||83===e.keyCode)&&e.ctrlKey?(e.preventDefault(),t.onSubmit(e)):null}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.show_in_menu,expression:"form.show_in_menu"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.show_in_menu)?t._i(t.form.show_in_menu,null)>-1:t.form.show_in_menu},on:{change:function(e){var n=t.form.show_in_menu,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"show_in_menu",n.concat([null])):o>-1&&t.$set(t.form,"show_in_menu",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"show_in_menu",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.slug,expression:"form.slug"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.slug},on:{input:function(e){e.target.composing||t.$set(t.form,"slug",e.target.value)}}})])]),t._v(" "),t.form.articles_count?t._e():n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.alt_url,expression:"form.alt_url"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.alt_url},on:{input:function(e){e.target.composing||t.$set(t.form,"alt_url",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(5),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.info,expression:"form.info"}],staticClass:"form-control",attrs:{rows:"4",max:"500"},domProps:{value:t.form.info},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"info",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.keywords,expression:"form.keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.paginate,expression:"form.paginate"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.paginate},on:{input:function(e){e.target.composing||t.$set(t.form,"paginate",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.order_by,expression:"form.order_by"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"order_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"id"}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"title"}},[t._v("Заголовок")]),t._v(" "),n("option",{attrs:{value:"views"}},[t._v("Количество просмотров")]),t._v(" "),n("option",{attrs:{value:"comments_count"}},[t._v("Количество комментариев")]),t._v(" "),n("option",{attrs:{value:"created_at"}},[t._v("Дата создания")]),t._v(" "),n("option",{attrs:{value:"updated_at"}},[t._v("Дата обновления")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.direction,expression:"form.direction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"direction",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"desc"}},[t._v("По убыванию")]),t._v(" "),n("option",{attrs:{value:"asc"}},[t._v("По возрастанию")])])])]),t._v(" "),t.form.id?n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.template,expression:"form.template"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"template",e.target.multiple?n:n[0])}}},[n("option",{domProps:{value:null}},[t._v("По умолчанию")]),t._v(" "),t._l(t.template_list,(function(e,r){return n("option",{domProps:{value:r}},[t._v(t._s(e))])}))],2)])]):t._e()])]),t._v(" "),t.x_fields.length?n("div",{staticClass:"card card-default"},[t._m(15),t._v(" "),n("div",{staticClass:"card-body"},t._l(t.x_fields,(function(e){return n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-sm-7"},[n("label",{staticClass:"control-label"},[t._v(t._s(e.title))]),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(e.descr))])]),t._v(" "),n("div",{staticClass:"col-sm-5"},["string"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"integer"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"boolean"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form[e.name])?t._i(t.form[e.name],null)>-1:t.form[e.name]},on:{change:function(n){var r=t.form[e.name],i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=t._i(r,null);i.checked?a<0&&t.$set(t.form,e.name,r.concat([null])):a>-1&&t.$set(t.form,e.name,r.slice(0,a).concat(r.slice(a+1)))}else t.$set(t.form,e.name,o)}}})]:"array"===e.type?[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,e.name,n.target.multiple?r:r[0])}}},t._l(e.params,(function(e,r){return n("option",{domProps:{value:e.key}},[t._v(t._s(e.value))])})),0)]:"text"===e.type?[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"timestamp"===e.type?[n("input-datetime-local",{staticClass:"form-control",model:{value:t.form[e.name],callback:function(n){t.$set(t.form,e.name,n)},expression:"form[field.name]"}})]:n("div",{staticClass:"alert alert-danger"},[t._v("Неизвестный тип поля.")])],2)])})),0)]):t._e(),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(16),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"categories"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Отображать категорию в меню на панеле навигации")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок "),e("sup",{staticClass:"text-danger"},[this._v("*")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:" control-label"},[this._v("Ярлык для веб-страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оставьте пустым для автоматического создания.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Альтернативный URL")]),this._v(" "),e("small",{staticClass:"form-text text-warning"},[this._v("В категорию, для которой прописан альт. URL, добавлять записи нельзя!")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры для главной страницы")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к категории.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Информация")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Информационный блок, отображаемый на странице категории сайта.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Мета тег description. Формируется только для главной страницы категории.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Мета тег keywords. Формируется только для главной страницы категории. Заполняется через запятую.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество записей на странице")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Если оставить поле пустым, то число будет взято из общих настроек сайта.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Сортировка записей на странице")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Порядок сортировки")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Активный шаблон")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Индивидуальные шаблоны для каждой категории, а также записей и комментариев к этим записям."),e("br"),this._v("Должны быть расположены в папке "),e("code",[this._v("resources/themes/{theme}/views/custom_views/{category_slug}")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Дополнительные поля")])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,us=[{path:"/categories",name:"categories",component:ns,meta:{title:"Список категорий сайта"},props:function(t){return{model:Un}}},{path:"/categories/create",name:"categories.create",component:cs,meta:{title:"Создание категории"},props:function(t){return{model:Un,id:0}}},{path:"/categories/:id/edit",name:"categories.edit",component:cs,meta:{title:"Редактирование категории"},props:function(t){return{model:Un,id:parseInt(t.params.id,10)}}},{path:"/categories/settings",name:"categories.settings",component:qo({name:"categories-settings",extends:Za,data:function(){return{entity:"categories"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.example,expression:"form.example"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.example},on:{input:function(e){e.target.composing||t.$set(t.form,"example",e.target.value)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(3),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блок настроек")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Пример настройки "),e("small",{staticClass:"form-text text-muted"},[this._v("Описание настройки.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки категорий"}}];function fs(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ps(t){for(var e=1;e-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("i",[t._v(t._s(r.user&&r.user.name))]),t._v(": "+t._s(r.content)+"\n ")]),t._v(" "),n("td",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(r.created_at))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.toggleStateComment(r)}}},[n("i",{class:t.classState(r.is_approved)})]),t._v(" "),r.is_approved&&r.url?n("a",{staticClass:"btn btn-link",attrs:{href:r.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})]):n("button",{staticClass:"btn btn-link",attrs:{type:"button",disabled:""}},[n("i",{staticClass:"fa fa-external-link text-muted"})]),t._v(" "),n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"comments.edit",params:{id:r.id}}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:r.id,checked:Array.isArray(t.selected)?t._i(t.selected,r.id)>-1:t.selected},on:{change:function(e){var n=t.selected,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=r.id,s=t._i(n,a);i.checked?s<0&&(t.selected=n.concat([a])):s>-1&&(t.selected=n.slice(0,s).concat(n.slice(s+1)))}else t.selected=o}}})])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Пользователь: комментарий")]),t._v(" "),n("td",[t._v("Создан")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"action",fn:function(){return[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.massAction,expression:"massAction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.massAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v("Выберите действие")]),t._v(" "),n("optgroup",{attrs:{label:"Статус"}},[n("option",{attrs:{value:"published"}},[t._v("Опубликовать")]),t._v(" "),n("option",{attrs:{value:"unpublished"}},[t._v("Отправить на модерацию")])])]),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"submit"},on:{click:t.applyMassAction}},[t._v("Применить")])])])]},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,meta:{title:"Список комментариев сайта"},props:function(t){return{model:Yn}}},{path:"/comments/:id/edit",name:"comments.edit",component:qo({name:"comments-edit",components:{"image-uploader":qa},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:{}}},computed:{showedForm:function(){return Object.keys(this.form).length>0},isEditMode:function(){return this.$props.id>0}},mounted:function(){var t=vs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.$get({params:{id:this.isEditMode?this.$props.id:"form"}});case 2:this.form=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{onSubmit:function(){var t=vs(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:ps({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:ps({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,ps({},n));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"4",required:""},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(4),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"comments"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Краткое описание")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к заметке.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Редактирование комментария"},props:function(t){return{model:Yn,id:parseInt(t.params.id,10)}}},{path:"/comments/settings",name:"comments.settings",component:qo({name:"comments-settings",extends:Za,data:function(){return{entity:"comments"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.regonly,expression:"form.regonly"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.regonly)?t._i(t.form.regonly,null)>-1:t.form.regonly},on:{change:function(e){var n=t.form.regonly,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"regonly",n.concat([null])):o>-1&&t.$set(t.form,"regonly",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"regonly",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.moderate,expression:"form.moderate"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.moderate)?t._i(t.form.moderate,null)>-1:t.form.moderate},on:{change:function(e){var n=t.form.moderate,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"moderate",n.concat([null])):o>-1&&t.$set(t.form,"moderate",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"moderate",i)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nested,expression:"form.nested"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.nested)?t._i(t.form.nested,null)>-1:t.form.nested},on:{change:function(e){var n=t.form.nested,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"nested",n.concat([null])):o>-1&&t.$set(t.form,"nested",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"nested",i)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-widget"}},[n("div",{staticClass:"card card-default"},[t._m(6),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.widget_used,expression:"form.widget_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.widget_used)?t._i(t.form.widget_used,null)>-1:t.form.widget_used},on:{change:function(e){var n=t.form.widget_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"widget_used",n.concat([null])):o>-1&&t.$set(t.form,"widget_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"widget_used",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.widget_title,expression:"form.widget_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.widget_title},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.widget_count,expression:"form.widget_count",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.widget_count},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_count",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(10),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.widget_content_length,expression:"form.widget_content_length",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.widget_content_length},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_content_length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(11),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-widget","data-toggle":"tab"}},[this._v("Настройки виджета")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Только для зарегистрированных")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Да - комментирование доступно только для зарегистрированных пользователей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Модерация комментариев")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Опубликовывать комментарии только после одобрения.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вывод древовидных комментариев")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Да - постраничная навигация будет недоступна.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать виджет")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Данный виджет выводит несколько последних комментариев.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок виджета")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество комментариев в виджете")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество символов в аннотации комментария")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки комментариев"}}];function gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _s=[{path:"/files",name:"files",component:qo({name:"files",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1,massAction:!1}}},computed:function(t){for(var e=1;e-1:t.form.images_is_convert},on:{change:function(e){var n=t.form.images_is_convert,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"images_is_convert",n.concat([null])):o>-1&&t.$set(t.form,"images_is_convert",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"images_is_convert",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_quality,expression:"form.images_quality",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"50",max:"100"},domProps:{value:t.form.images_quality},on:{input:function(e){e.target.composing||t.$set(t.form,"images_quality",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_thumb_width,expression:"form.images_thumb_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"240"},domProps:{value:t.form.images_thumb_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_thumb_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_thumb_height,expression:"form.images_thumb_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"240"},domProps:{value:t.form.images_thumb_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_thumb_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(7),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_small_width,expression:"form.images_small_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"241",max:"576"},domProps:{value:t.form.images_small_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_small_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_small_height,expression:"form.images_small_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"241",max:"576"},domProps:{value:t.form.images_small_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_small_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_medium_width,expression:"form.images_medium_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"577",max:"992"},domProps:{value:t.form.images_medium_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_medium_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_medium_height,expression:"form.images_medium_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"577",max:"992"},domProps:{value:t.form.images_medium_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_medium_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(13),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_max_width,expression:"form.images_max_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"993",max:"3840"},domProps:{value:t.form.images_max_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_max_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(15),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_max_height,expression:"form.images_max_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"993",max:"2160"},domProps:{value:t.form.images_max_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_max_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(16),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-images","data-toggle":"tab"}},[this._v("Загрузчик изображений")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Общие параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Конвертировать изображения")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Конвертировать загружаемые изображения в формат "),e("code",[this._v("*.jpeg")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Качество изображений")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Миниатюра изображения "),e("code",[this._v("thumb")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("При создании миниатюры будет задана эта величина с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("При создании миниатюры будет задана эта величина с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Малое изображение "),e("code",[this._v("small")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Изображение средних размеров "),e("code",[this._v("medium")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Оригинал изображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оригинал изображения будет уменьшен до этой величины с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оригинал изображения будет уменьшен до этой величины с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки файлового менеджера"}}];function ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xs(t){for(var e=1;e0},isEditMode:function(){return this.$props.id>0}},mounted:function(){var t=js(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.$get({params:{id:this.isEditMode?this.$props.id:"form"}});case 2:this.form=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{onSubmit:function(){var t=js(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:Es({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:Es({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,Es({},n));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"4",required:""},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(4),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"notes"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Краткое описание")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к заметке.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,Ns=[{path:"/notes",name:"notes",component:Cs,meta:{title:"Список заметок"},props:function(t){return{model:Cr}}},{path:"/notes/create",name:"notes.create",component:Ts,meta:{title:"Создание заметки"},props:function(t){return{model:Cr,id:0}}},{path:"/notes/:id/edit",name:"note.edit",component:Ts,meta:{title:"Редактирование заметки"},props:function(t){return{model:Cr,id:parseInt(t.params.id,10)}}}];function Ps(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ls(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ps(o,r,i,a,s,"next",t)}function s(t){Ps(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ms={name:"privileges",data:function(){return{privileges:[],roles:[]}},computed:{table:function(){var t=this,e={};return this.roles.map((function(n){e[n]=[],t.privileges.map((function(t){t[n]&&e[n].push(t.id)}))})),e}},mounted:function(){var t=Ls(i.a.mark((function t(){var e;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,k("".concat(Pageinfo.api_url,"/privileges"));case 3:e=t.sent,this.roles=e.data.roles,this.privileges=e.data.privileges,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("Не удалось загрузить привилегии пользователей.");case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:function(){var t=Ls(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(confirm("Вы уверены?")){t.next=2;break}return t.abrupt("return",!1);case 2:return t.prev=2,t.next=5,C("".concat(Pageinfo.api_url,"/privileges"),this.table);case 5:n=t.sent,this.roles=n.data.roles,this.privileges=n.data.privileges,Notification.success({message:__("Updated!")}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error("Не удалось сохранить привилегии пользователей.");case 14:case"end":return t.stop()}}),t,this,[[2,11]])})));return function(e){return t.apply(this,arguments)}}(),updateColumn:function(t,e){"owner"!==e&&this.privileges.forEach((function(n){n[e]=t.target.checked}))},updateRow:function(t,e){var n=this;this.roles.forEach((function(r){"owner"!==r&&(n.privileges[e][r]=t.target.checked)}))}}},$s=(n("HmDM"),[{path:"/privileges",name:"privileges",component:qo(Ms,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card card-table"},[n("div",{staticClass:"card-header d-flex d-print-none"},[n("div",{staticClass:"btn-group d-flex ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/roles|privileges"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"})]),t._v(" "),n("form",{attrs:{action:"#"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card-body table-responsive"},[n("table",{staticClass:"table table-sm table-hover"},[n("thead",[n("tr",[n("th",[t._v("Привилегия")]),t._v(" "),n("th",[t._v("Описание")]),t._v(" "),t._l(t.roles,(function(e,r){return[n("th",[n("label",{staticClass:"control-label"},["owner"!==e?n("input",{attrs:{type:"checkbox"},on:{click:function(n){return t.updateColumn(n,e)}}}):t._e(),t._v(" "+t._s(e)+"\n ")])])]}))],2)]),t._v(" "),n("tbody",t._l(t.privileges,(function(e,r){return n("tr",[n("td",[n("label",{staticClass:"control-label"},[n("input",{attrs:{type:"checkbox"},on:{click:function(e){return t.updateRow(e,r)}}}),t._v("  "+t._s(e.privilege)+"\n ")])]),t._v(" "),n("td",[t._v(t._s(e.description))]),t._v(" "),t._l(t.roles,(function(r){return n("td",[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e[r],expression:"item[role]"}],attrs:{type:"checkbox",disabled:"owner"==r},domProps:{checked:Array.isArray(e[r])?t._i(e[r],null)>-1:e[r]},on:{change:function(n){var i=e[r],o=n.target,a=!!o.checked;if(Array.isArray(i)){var s=t._i(i,null);o.checked?s<0&&t.$set(e,r,i.concat([null])):s>-1&&t.$set(e,r,i.slice(0,s).concat(i.slice(s+1)))}else t.$set(e,r,a)}}})])])}))],2)})),0)])]),t._v(" "),n("div",{staticClass:"card-footer"},[t._m(0),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"users"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,"15d4eb78",null).exports,meta:{title:"Привилегии пользователей"}}]);function qs(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Rs(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Is,Fs=qo({name:"settings",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},computed:{collection:function(){return this.$props.model.all()},modules:function(){var t=Rs(new Set(this.collection.map((function(t){return t.module_name})))).slice(0);return t}},watch:{modules:function(t){var e=this;t.map((function(t){return e.loadFromJsonPath(t)}))}},mounted:function(){},methods:{destroy:function(t){confirm("Вы уверены, что хотите удалить эту настройку: ".concat(t.name,"?"))&&this.$props.model.$delete({params:{id:t.id}})}},beforeDestroy:(Is=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){qs(o,r,i,a,s,"next",t)}function s(t){qs(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)}))),function(){return Is.apply(this,arguments)})},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"settings.create"}}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Создать")]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/settings"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:"#",title:"Печать",onclick:"window.print(); return false;"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Настройка")]),t._v(" "),n("th",[t._v("Тип поля")]),t._v(" "),n("th",[t._v("Заголовок")]),t._v(" "),n("th",[t._v("Модуль")]),t._v(" "),n("th",[t._v("Вкладка")]),t._v(" "),n("th",[t._v("Набор полей")]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{attrs:{to:{name:"settings.edit",params:{id:r.id}}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(r.type))]),t._v(" "),n("td",[t._v(t._s(t._f("trans")(r.title)))]),t._v(" "),n("td",[t._v(t._s(r.module_name))]),t._v(" "),n("td",[t._v(t._s(r.section))]),t._v(" "),n("td",[t._v(t._s(r.fieldset))]),t._v(" "),n("td",{staticClass:"text-right"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"settings.edit",params:{id:r.id}},title:t._f("trans")("Edit")}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button",title:t._f("trans")("Delete")},on:{click:function(e){return e.preventDefault(),t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Настройка")]),t._v(" "),n("td",[t._v("Тип поля")]),t._v(" "),n("td",[t._v("Заголовок")]),t._v(" "),n("td",[t._v("Модуль")]),t._v(" "),n("td",[t._v("Вкладка")]),t._v(" "),n("td",[t._v("Набор полей")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports;function Ds(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Bs(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ds(o,r,i,a,s,"next",t)}function s(t){Ds(o,r,i,a,s,"throw",t)}a(void 0)}))}}var zs=qo({name:"settings-edit",components:{},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:new this.$props.model}},computed:{showedForm:function(){return Object.keys(this.form).length>0},isEditMode:function(){return this.$props.id>0},extensibles:function(){return[]}},mounted:function(){var t=Bs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.$props.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:function(){var t=Bs(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=5;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:this.form});case 3:t.next=9;break;case 5:return t.next=7,this.$props.model.$create({data:this.form});case 7:n=t.sent,this.form=n;case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},beforeDestroy:function(){var t=Bs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Поле")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.extensible},on:{input:function(e){e.target.composing||t.$set(t.form,"extensible",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"extensible",e.target.multiple?n:n[0])}}},t._l(t.extensibles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(1),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"settings"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блок")])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,Us=[{path:"/settings",name:"settings",component:Fs,meta:{title:"Список настроек"},props:function(t){return{model:Nr}}},{path:"/settings/create",name:"settings.create",component:zs,meta:{title:"Создание настройки"},props:function(t){return{model:Nr,id:0}}},{path:"/settings/:id/edit",name:"settings.edit",component:zs,meta:{title:"Редактирование настройки"},props:function(t){return{model:Nr,id:parseInt(t.params.id,10)}}},{path:"/system",name:"system.settings",alias:"/system/settings",component:qo({name:"system",extends:Za,data:function(){return{entity:"system",changefreq:["always","hourly","daily","weekly","monthly","yearly","never"]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.app_name,expression:"form.app_name"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.app_name},on:{input:function(e){e.target.composing||t.$set(t.form,"app_name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.app_url,expression:"form.app_url"}],staticClass:"form-control",attrs:{type:"text",readonly:""},domProps:{value:t.form.app_url},on:{input:function(e){e.target.composing||t.$set(t.form,"app_url",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title,expression:"form.meta_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title_delimiter,expression:"form.meta_title_delimiter"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title_delimiter},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title_delimiter",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title_reverse,expression:"form.meta_title_reverse"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.meta_title_reverse)?t._i(t.form.meta_title_reverse,null)>-1:t.form.meta_title_reverse},on:{change:function(e){var n=t.form.meta_title_reverse,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"meta_title_reverse",n.concat([null])):o>-1&&t.$set(t.form,"meta_title_reverse",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"meta_title_reverse",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_description,expression:"form.meta_description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_keywords,expression:"form.meta_keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.organization,expression:"form.organization"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.organization},on:{input:function(e){e.target.composing||t.$set(t.form,"organization",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.address_locality,expression:"form.address_locality"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.address_locality},on:{input:function(e){e.target.composing||t.$set(t.form,"address_locality",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.address_street,expression:"form.address_street"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.address_street},on:{input:function(e){e.target.composing||t.$set(t.form,"address_street",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_telephone,expression:"form.contact_telephone"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.contact_telephone},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_telephone",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(15),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_email,expression:"form.contact_email"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.form.contact_email},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_email",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-security"}},[n("div",{staticClass:"card card-default"},[t._m(16),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(17),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.lock,expression:"form.lock"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.lock)?t._i(t.form.lock,null)>-1:t.form.lock},on:{change:function(e){var n=t.form.lock,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"lock",n.concat([null])):o>-1&&t.$set(t.form,"lock",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"lock",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(18),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.reason,expression:"form.reason"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.reason},on:{input:function(e){e.target.composing||t.$set(t.form,"reason",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(19),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.retry,expression:"form.retry"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.retry},on:{input:function(e){e.target.composing||t.$set(t.form,"retry",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(20),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(21),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_used,expression:"form.captcha_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.captcha_used)?t._i(t.form.captcha_used,null)>-1:t.form.captcha_used},on:{change:function(e){var n=t.form.captcha_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"captcha_used",n.concat([null])):o>-1&&t.$set(t.form,"captcha_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"captcha_used",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(22),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_width,expression:"form.captcha_width"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_width},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_width",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(23),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_height,expression:"form.captcha_height"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_height},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_height",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(24),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_font_family,expression:"form.captcha_font_family"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"captcha_font_family",e.target.multiple?n:n[0])}}},t._l(t.meta.fonts,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(25),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_font_size,expression:"form.captcha_font_size"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_font_size},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_font_size",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-sitemap"}},[n("div",{staticClass:"card card-default"},[t._m(26),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(27),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.home_changefreq,expression:"form.home_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"home_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(28),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.home_priority,expression:"form.home_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.home_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"home_priority",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(29),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(30),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.categories_changefreq,expression:"form.categories_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"categories_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(31),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.categories_priority,expression:"form.categories_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.categories_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"categories_priority",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(32),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(33),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.articles_changefreq,expression:"form.articles_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"articles_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(34),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.articles_priority,expression:"form.articles_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.articles_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"articles_priority",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-themes"}},[n("div",{staticClass:"card card-default"},[t._m(35),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(36),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_theme,expression:"form.app_theme"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_theme",e.target.multiple?n:n[0])}}},t._l(t.meta.themes,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(37),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_skin,expression:"form.app_skin"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_skin",e.target.multiple?n:n[0])}}},t._l(t.meta.skins,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(38),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_locale,expression:"form.app_locale"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_locale",e.target.multiple?n:n[0])}}},t._l(t.meta.lang,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(39),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.homepage_personalized,expression:"form.homepage_personalized"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.homepage_personalized)?t._i(t.form.homepage_personalized,null)>-1:t.form.homepage_personalized},on:{change:function(e){var n=t.form.homepage_personalized,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"homepage_personalized",n.concat([null])):o>-1&&t.$set(t.form,"homepage_personalized",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"homepage_personalized",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(40),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"dashboard"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-security","data-toggle":"tab"}},[this._v("Безопасность")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-sitemap","data-toggle":"tab"}},[this._v("Карта сайта")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-themes","data-toggle":"tab"}},[this._v("Персонализация")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Название сайта")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Например: BixBite.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Домашняя страница")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Например: http://server.com.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Мета данные")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок домашней страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет тайтла — нет поискового трафика.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Разделитель при формировании заголовка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Общие правила для всех страниц.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Обратить порядок формирования заголовка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Меняет местами Заголовок сайта и Заголовок целевой страницы. Общие правила для всех страниц.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание домашней страницы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова домашней страницы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Официальные данные об организации")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Название организации")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Населенный пункт (страна, область/край, город)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Адрес (улица, дом/строение)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Контактный телефон")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Контактный email")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блокировка сайта")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заблокировать сайт")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Сайт делается неактивным.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Причина блокировки сайта")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите причину по которой сайт был заблокирован. Например: "),e("code",[this._v("Технические работы")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Повторить попытку")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите через какое время боту поисковой системы необходимо повторно вернуться на сайт."),e("br"),this._v("По умолчанию: "),e("b",[this._v("3600")]),this._v(" сек.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Стандартная капча")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать встроенную капчу")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ширина изображения")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Высота изображения")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Семейство шрифтов")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Размер шрифта")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Домашняя страница")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения домашней страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[e("a",{attrs:{href:"https://www.sitemaps.org/ru/protocol.html",target:"_blank"}},[this._v("Подробнее")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Страницы категорий")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения страниц")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Целевые страницы записей")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения страниц")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Шаблон сайта")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Шаблон админ. панели")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Язык интерфейса")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("В текущей версии CMS не влияет на шаблон админ. панели.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать персонализированную домашнюю страницу")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет - на главной странице будет выведен список последних записей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки системы"}}],Hs=n("VrN/"),Ks=n.n(Hs),Ws={markup:"html",stylesheet:"css"},Vs={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};function Gs(t,e,n,r,i){return Zs(t,e,n,r,i).reduce((function(t,e){return Object.assign({},t,e)}),{})}function Zs(t,e,n,r,i){return[Ys(t,["globals",n,e]),Ys(t,["project",i,"globals",n,e]),Ys(t,["syntax",r,e]),Ys(t,["project",i,"syntax",r,e])].filter(Boolean)}function Ys(t,e,n){for(var r=t,i=0;i=this.end}limit(t,e){return new this.constructor(this.string,t,e)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos47&&t<58}function ol(t,e,n){return n=n||90,(t&=-33)>=(e=e||65)&&t<=n}function al(t){return il(t)||ol(t)}function sl(t){return 32===t||9===t||160===t}function ll(t){return sl(t)||10===t||13===t}const cl={escape:92,throws:!1};function ul(t,e,n,r){r=r?Object.assign({},cl,r):cl;const i=t.pos;if(t.eat(e)){let o,a=1;for(;!t.eof();)if(!nl(t,r))if((o=t.next())===e)a++;else if(o===n){if(!--a)return t.start=i,!0}else o===r.escape&&t.next();if(t.pos=i,r.throws)throw t.error(`Unable to find matching pair for ${String.fromCharCode(e)}`)}return!1}const fl=36,dl=58,pl=92,hl=123,ml=125;function vl(t,e){return e?`\${${t}:${e}}`:`\${${t}}`}function yl(t,e){const n=t.pos;if(t.eat(fl)){let n=gl(t),r="";if(null!=n)return new bl(n,r,e);if(t.eat(hl)&&null!=(n=gl(t))&&(t.eat(dl)&&(r=function(t){let e;const n=[];t.start=t.pos;for(;!t.eof();){if((e=t.peek())===hl)n.push(t.pos);else if(e===ml){if(!n.length)break;n.pop()}t.next()}if(n.length)throw t.error('Unable to find matching "}" for curly brace at '+n.pop());return t.current()}(t)),t.eat(ml)))return new bl(n,r,e)}t.pos=n}function gl(t){if(t.start=t.pos,t.eatWhile(il))return Number(t.current())}class bl{constructor(t,e,n){this.index=t,this.placeholder=e,this.location=n,this.length=this.placeholder.length}}class _l{constructor(t,e){this.string=t,this.fields=e}mark(t){return function(t,e,n){n=n||vl;const r=e.map((t,e)=>({order:e,field:t,end:t.location+t.length})).sort((t,e)=>t.end-e.end||t.order-e.order);let i=0;return r.map(e=>{const r=t.substr(e.field.location,e.field.length),o=t.slice(i,e.field.location);return i=e.end,o+n(e.field.index,r)}).join("")+t.slice(i)}(this.string,this.fields,t)}toString(){return this.string}}var wl=function(t){const e=new Js(t),n=[];let r,i,o="",a=0,s=0;for(;!e.eof();)r=e.peek(),s=e.pos,r===pl?(e.next(),e.next()):(i=yl(e,o.length+s-a))?(n.push(i),o+=e.string.slice(a,s)+i.placeholder,a=e.pos):e.next();return new _l(o+e.string.slice(a),n)};class xl{constructor(t,e){this.string=t,this.start=e||0,this.pos=this.string.length}sol(){return this.pos===this.start}peek(t){return this.string.charCodeAt(this.pos-1+(t||0))}prev(){if(!this.sol())return this.string.charCodeAt(--this.pos)}eat(t){if(this.sol())return!1;const e="function"==typeof t?t(this.peek()):t===this.peek();return e&&this.pos--,e}eatWhile(t){const e=this.pos;for(;this.eat(t););return this.pos=65&&t<=90}(t)||function(t){return t>47&&t<58}(t)}function Rl(t){return t===Sl||t===Al}function Il(t){return t&&t!==Nl&&!Rl(t)&&!El(t)}const Fl=t=>t.charCodeAt(0),Dl=Fl("["),Bl=Fl("]"),zl=Fl("("),Ul=Fl(")"),Hl=Fl("{"),Kl=Fl("}"),Wl=new Set("#.*:$-_!@%^+>/".split("").map(Fl)),Vl=(new Map).set(Dl,Bl).set(zl,Ul).set(Hl,Kl),Gl={syntax:"markup",lookAhead:null,prefix:""};function Zl(t,e,n){const r=t.pos;if(t.eat(e))for(;!t.sol();){if(t.eat(n))return!0;t.pos--}return t.pos=r,!1}function Yl(t,e){const n=t.pos;let r=!1;for(let n=e.length-1;n>=0&&!t.sol()&&t.eat(e[n]);n--)r=0===n;return r||(t.pos=n),r}function Xl(t,e){return-1!==t.indexOf(e)}function Jl(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||Wl.has(t)}function Ql(t,e){return t===zl||"markup"===e&&(t===Dl||t===Hl)}function tc(t,e){return t===Ul||"markup"===e&&(t===Bl||t===Kl)}var ec=function(t,e,n){let r;e=Math.min(t.length,Math.max(0,null==e?t.length:e)),null!=(n="boolean"==typeof n?Object.assign({},Gl,{lookAhead:n}):Object.assign({},Gl,n)).lookAhead&&!0!==n.lookAhead||(e=function(t,e,n){El(t.charCodeAt(e))&&e++;for(;tc(t.charCodeAt(e),n.syntax);)e++;return e}(t,e,n));const i=function(t,e,n){if(!n)return 0;const r=new xl(t),i=String(n).split("").map(Fl);let o;r.pos=e;for(;!r.sol();)if(!Zl(r,Bl,Dl)&&!Zl(r,Kl,Hl)){if(o=r.pos,Yl(r,i))return o;r.pos--}return-1}(t,e,n.prefix);if(-1===i)return null;const o=new xl(t,i);o.pos=e;const a=[];for(;!o.sol();){if(tc(r=o.peek(),n.syntax))a.push(r);else if(Ql(r,n.syntax)){if(a.pop()!==Vl.get(r))break}else{if(Xl(a,Bl)||Xl(a,Kl)){o.pos--;continue}if(Pl(o)||!Jl(r))break}o.pos--}if(!a.length&&o.pos!==e){const r=t.slice(o.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:r,location:e-r.length,start:n.prefix?i-n.prefix.length:e-r.length,end:e}}};class nc{constructor(t,e,n){this.name=t,this.value=null!=e?e:null,this.options=n||{}}clone(){return new nc(this.name,this.value,Object.assign({},this.options))}valueOf(){return`${this.name}="${this.value}"`}}class rc{constructor(t,e){this.name=t||null,this.value=null,this.repeat=null,this.selfClosing=!1,this.children=[],this.parent=null,this.next=null,this.previous=null,this._attributes=[],Array.isArray(e)&&e.forEach(t=>this.setAttribute(t))}get attributes(){return this._attributes}get attributesMap(){return this.attributes.reduce((t,e)=>(t[e.name]=e.options.boolean?e.name:e.value,t),{})}get isGroup(){return!this.name&&!this.value&&!this._attributes.length}get isTextOnly(){return!this.name&&!!this.value&&!this._attributes.length}get firstChild(){return this.children[0]}get lastChild(){return this.children[this.children.length-1]}get childIndex(){return this.parent?this.parent.children.indexOf(this):-1}get nextSibling(){return this.next}get previousSibling(){return this.previous}get classList(){const t=this.getAttribute("class");return t&&t.value?t.value.split(/\s+/g).filter(ac):[]}create(t,e){return new rc(t,e)}setAttribute(t,e){const n=ic(t,e),r=this.getAttribute(t);r?this.replaceAttribute(r,n):this._attributes.push(n)}hasAttribute(t){return!!this.getAttribute(t)}getAttribute(t){"object"==typeof t&&(t=t.name);for(var e=0;ee!==t).join(" "))}appendChild(t){this.insertAt(t,this.children.length)}insertBefore(t,e){this.insertAt(t,this.children.indexOf(e))}insertAt(t,e){if(e<0||e>this.children.length)throw new Error("Unable to insert node: position is out of child list range");const n=this.children[e-1],r=this.children[e];t.remove(),t.parent=this,this.children.splice(e,0,t),n&&(t.previous=n,n.next=t),r&&(t.next=r,r.previous=t)}removeChild(t){const e=this.children.indexOf(t);-1!==e&&(this.children.splice(e,1),t.previous&&(t.previous.next=t.next),t.next&&(t.next.previous=t.previous),t.parent=t.next=t.previous=null)}remove(){this.parent&&this.parent.removeChild(this)}clone(t){const e=new rc(this.name);return e.value=this.value,e.selfClosing=this.selfClosing,this.repeat&&(e.repeat=Object.assign({},this.repeat)),this._attributes.forEach(t=>e.setAttribute(t.clone())),t&&this.children.forEach(t=>e.appendChild(t.clone(!0))),e}walk(t,e){e=e||0;let n=this.firstChild;for(;n;){const r=n.next;if(!1===t(n,e)||!1===n.walk(t,e+1))return!1;n=r}}use(t){const e=[this];for(var n=1;n{const e=(t=this.getAttribute(t.name)).options;let n=`${e&&e.implied?"!":""}${t.name||""}`;return e&&e.boolean?n+=".":null!=t.value&&(n+=`="${t.value}"`),n});let e=`${this.name||""}`;return t.length&&(e+=`[${t.join(" ")}]`),null!=this.value&&(e+=`{${this.value}}`),this.selfClosing&&(e+="/"),this.repeat&&(e+=`*${this.repeat.count?this.repeat.count:""}`,null!=this.repeat.value&&(e+=`@${this.repeat.value}`)),e}}function ic(t,e){return t instanceof nc?t:"string"==typeof t?new nc(t,e):t&&"object"==typeof t?new nc(t.name,t.value,t.options):void 0}function oc(t){return String(t).trim()}function ac(t,e,n){return t&&n.indexOf(t)===e}var sc=rc;const lc=42;function cc(t){if(t.eat(lc))return t.start=t.pos,{count:t.eatWhile(il)?+t.current():null}}const uc={throws:!0};function fc(t){if(nl(t,uc))return t.current().slice(1,-1)}const dc=123,pc=125,hc=92;function mc(t){const e=t.pos;if(t.eat(dc)){let n,r=1,i="",o=t.pos;for(;!t.eof();)if((n=t.next())===dc)r++;else if(n===pc){if(!--r)return t.start=e,i+t.substring(o,t.pos-1)}else n===hc&&((n=t.next())!==dc&&n!==pc||(i+=t.substring(o,t.pos-2)+String.fromCharCode(n),o=t.pos));throw t.pos=e,t.error(`Unable to find closing ${String.fromCharCode(pc)} for text start`)}return null}const vc=33,yc=46,gc=61,bc=91,_c=93,wc=/^\!?[\w\-:\$@]+\.?$|^\!?\[[\w\-:\$@]+\]\.?$/;function xc(t){if(!t.eat(bc))return null;const e=[];let n,r;for(;!t.eof();){if(t.eatWhile(sl),t.eat(_c))return e;if(null!=(n=fc(t)))e.push({name:null,value:n});else{if(!Cc(t))throw t.error("Expected attribute name");"["===(n=t.current())[0]&&t.peek()===_c&&(t.next(),n=t.current()),wc.test(n)?(r=kc(n),e.push(r),t.eat(gc)&&(null!=(n=fc(t))?r.value=n:null!=(n=mc(t))?(r.value=n,r.options={before:"{",after:"}"}):Cc(t)&&(r.value=t.current()))):e.push({name:null,value:n})}}throw t.error('Expected closing "]" brace')}function kc(t){const e={};t.charCodeAt(0)===vc&&(t=t.slice(1),e.implied=!0),t.charCodeAt(t.length-1)===yc&&(t=t.slice(0,t.length-1),e.boolean=!0);const n={name:t};return Object.keys(e).length&&(n.options=e),n}function Cc(t){const e=t.pos;if(t.eatWhile(Oc))return t.start=e,!0}function Oc(t){return!ll(t)&&!rl(t)&&t!==_c&&t!==gc}const Ec=35,Ac=46,Sc=47;function jc(t){const e=t.pos,n=new sc(Tc(t));let r;for(;!t.eof();)if(t.eat(Ac))n.addClass(Tc(t));else if(t.eat(Ec))n.setAttribute("id",Tc(t));else{if(t.eat(Sc)){if(n.isGroup)throw t.backUp(1),t.error("Unexpected self-closing indicator");n.selfClosing=!0,(r=cc(t))&&(n.repeat=r);break}if(r=xc(t))for(let t=0,e=r.length;t0;)i.firstChild.repeat=i.repeat,e.insertAt(i.firstChild,n++);else e.insertAt(i,n++)}t.parent.removeChild(t)}var Ic=function(t){const e=function(t){const e=new Js(t.trim()),n=new sc;let r,i=n,o=[];for(;!e.eof();){if((r=e.peek())===Pc){const t=new sc;o.push([t,i,e.pos]),i=t,e.next();continue}if(r===Lc){const t=o.pop();if(!t)throw e.error('Unexpected ")" group end');const n=t[0];if(i=t[1],e.next(),n.repeat=cc(e))i.appendChild(n);else for(;n.firstChild;)i.appendChild(n.firstChild);e.eat(Mc);continue}const t=jc(e);if(i.appendChild(t),e.eof())break;switch(e.peek()){case Mc:e.next();continue;case $c:e.next(),i=t;continue;case qc:for(;e.eat(qc);)i=i.parent||i;continue}}if(o.length)throw e.pos=o.pop()[2],e.error("Expected group close");return n}(t);return e.walk(Rc),e};const Fc=42;function Dc(t){if(t.eat(Fc))return t.start=t.pos,{count:t.eatWhile(il)?+t.current():null}}const Bc={throws:!0};function zc(t){if(nl(t,Bc))return t.current().slice(1,-1)}const Uc=123,Hc=125,Kc=92;function Wc(t){const e=t.pos;if(t.eat(Uc)){let n,r=1,i="",o=t.pos;for(;!t.eof();)if((n=t.next())===Uc)r++;else if(n===Hc){if(!--r)return t.start=e,i+t.substring(o,t.pos-1)}else n===Kc&&((n=t.next())!==Uc&&n!==Hc||(i+=t.substring(o,t.pos-2)+String.fromCharCode(n),o=t.pos));throw t.pos=e,t.error(`Unable to find closing ${String.fromCharCode(Hc)} for text start`)}return null}const Vc=33,Gc=46,Zc=61,Yc=91,Xc=93,Jc=/^\!?[\w\-:\$@]+\.?$/;function Qc(t){if(!t.eat(Yc))return null;const e=[];let n,r;for(;!t.eof();){if(t.eatWhile(sl),t.eat(Xc))return e;if(null!=(n=zc(t)))e.push({name:null,value:n});else{if(!eu(t))throw t.error("Expected attribute name");n=t.current(),Jc.test(n)?(r=tu(n),e.push(r),t.eat(Zc)&&(null!=(n=zc(t))?r.value=n:null!=(n=Wc(t))?(r.value=n,r.options={before:"{",after:"}"}):eu(t)&&(r.value=t.current()))):e.push({name:null,value:n})}}throw t.error('Expected closing "]" brace')}function tu(t){const e={};t.charCodeAt(0)===Vc&&(t=t.slice(1),e.implied=!0),t.charCodeAt(t.length-1)===Gc&&(t=t.slice(0,t.length-1),e.boolean=!0);const n={name:t};return Object.keys(e).length&&(n.options=e),n}function eu(t){const e=t.pos;if(t.eatWhile(nu))return t.start=e,!0}function nu(t){return!ll(t)&&!rl(t)&&t!==Yc&&t!==Xc&&t!==Zc}const ru=35,iu=46,ou=47;function au(t){const e=t.pos,n=new sc(su(t));let r;for(;!t.eof();)if(t.eat(iu))n.addClass(su(t));else if(t.eat(ru))n.setAttribute("id",su(t));else{if(t.eat(ou)){if(n.isGroup)throw t.backUp(1),t.error("Unexpected self-closing indicator");n.selfClosing=!0,(r=Dc(t))&&(n.repeat=r);break}if(r=Qc(t))for(let t=0,e=r.length;t0;)i.firstChild.repeat=i.repeat,e.insertAt(i.firstChild,n++);else e.insertAt(i,n++)}t.parent.removeChild(t)}var mu=function(t){const e=function(t){const e=new Js(t.trim()),n=new sc;let r,i=n,o=[];for(;!e.eof();){if((r=e.peek())===cu){const t=new sc;o.push([t,i,e.pos]),i=t,e.next();continue}if(r===uu){const t=o.pop();if(!t)throw e.error('Unexpected ")" group end');const n=t[0];if(i=t[1],e.next(),n.repeat=Dc(e))i.appendChild(n);else for(;n.firstChild;)i.appendChild(n.firstChild);e.eat(fu);continue}const t=au(e);if(i.appendChild(t),e.eof())break;switch(e.peek()){case fu:e.next();continue;case du:e.next(),i=t;continue;case pu:for(;e.eat(pu);)i=i.parent||i;continue}}if(o.length)throw e.pos=o.pop()[2],e.error("Expected group close");return n}(t);return e.walk(hu),e};var vu=function(t,e){return t.walk(t=>(function(t,e){const n=new Set,r=t=>{const i=e.resolve(t.name);if(!i||n.has(i))return;if("function"==typeof i.value)return i.value(t,e,r);const o=mu(i.value);n.add(i),o.walk(r),n.delete(i);const a=function(t){for(;t.children.length;)t=t.children[t.children.length-1];return t}(o);for(!function(t,e){e.name=t.name,t.selfClosing&&(e.selfClosing=!0);null!=t.value&&(e.value=t.value);t.repeat&&(e.repeat=Object.assign({},t.repeat));(function(t,e){!function(t,e){const n=t.classList;for(let t=0;t{null==t.name&&t.attributes.length&&(t.name=bu(t.parent.name))}),t};function wu(t,e){const n=new Set,r=e.length;let i=0;for(;-1!==(i=t.indexOf(e,i));)n.add(i),i+=r;if(n.size){let e=0;const r=t.length;for(;e(function(t,e){return[t,e]})(t,r))}function xu(t,e,n){for(let r=e.length-1;r>=0;r--){const i=e[r];let o=0,a=0,s=!1;if("@"===t.substr(i[0]+i[1],1)){"-"===t.substr(i[0]+i[1]+1,1)&&(s=!0);const e=t.substr(i[0]+i[1]+1+Number(s)).match(/^(\d+)/);e?(a=e[1].length+1+Number(s),o=parseInt(e[1])-1):a=2}t=t.substring(0,i[0])+("function"==typeof n?n(t.substr(i[0],i[1]),o,s):n)+t.substring(i[0]+i[1]+a)}return t}const ku="$";var Cu=function(t){return t.walk(Ou),t};function Ou(t){const e=function(t){for(;t;){if(t.repeat)return t.repeat;t=t.parent}}(t);if(e&&null!=e.value){const n=e.value,r=e.count;t.name=Eu(t.name,n,r),t.value=Eu(t.value,n,r),t.attributes.forEach(e=>{const i=t.getAttribute(e.name).clone();i.name=Eu(e.name,n,r),i.value=Eu(e.value,n,r),t.replaceAttribute(e.name,i)})}return t}function Eu(t,e,n){if("string"==typeof t){return function(t,e,n,r){return function(t){let e=0,n="";const r=t.length;for(;e{let o=i?String(e+r-n+1):String(n+e);for(;o.length{if(!/[#{]/.test(t[n[0]+1]||"")){const t=e[e.length-1];t&&t[0]+t[1]===n[0]?t[1]+=n[1]:e.push(n)}return e},[])}(t),e,n)}return t}const Au="$#",Su="|",ju=/^((?:https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/,Tu=/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,Nu=/^([a-z]+:)?\/\//i;function Pu(t,e){return e=e||1,t.walk(t=>{if(t.repeat&&null===t.repeat.count){for(let n=0;n{t.repeat&&t.repeat.implicit&&(n=!0,function(t,e){let n=Mu(t,e);t.walk(t=>n|=Mu(t,e)),n||Ru(qu(t),e)}(t,e[t.repeat.index]))}),n||Ru(qu(t),e.join("\n"))}return t}function Mu(t,e){const n={replaced:!1};return t.value=$u(t.value,e,n),t.attributes.forEach(r=>{r.value&&t.setAttribute(r.name,$u(r.value,e,n))}),n.replaced}function $u(t,e,n){if("string"==typeof t){const r=wu(t,Au);r.length&&(n&&(n.replaced=!0),t=xu(t,r,e))}return t}function qu(t){for(;t.children.length;)t=t.children[t.children.length-1];return t}function Ru(t,e){if(t.value){const n=wu(t.value,Su);if(n.length)return void(t.value=xu(t.value,n,e))}("a"===t.name.toLowerCase()||t.hasAttribute("href"))&&(ju.test(e)?t.setAttribute("href",(Nu.test(e)?"":"http://")+e):Tu.test(e)&&t.setAttribute("href","mailto:"+e)),t.value=e}const Iu={element:"__",modifier:"_"},Fu=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Du=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Bu=t=>/^[a-z]\-/i.test(t),zu=t=>/^[a-z]/i.test(t);function Uu(t,e,n){let r=n.length>1?n.length:0;for(;t.parent&&t.parent.parent&&r--;)t=t.parent;return e.get(t)||""}function Hu(t,e){for(let n=0;n(function(t,e){const n=t.classList.reduce((t,e)=>{const n=e.indexOf("_");return n>0&&!e.startsWith("-")?(t.add(e.slice(0,n)),t.add(e.slice(n)),t):t.add(e)},new Set);n.size&&t.setAttribute("class",Array.from(n).join(" "))})(t));const n=function(t){const e=new Map;return t.walk(t=>{const n=t.classList;n.length&&e.set(t,Hu(n,Bu)||Hu(n,zu)||e.get(t.parent))}),e}(t);return t.walk(t=>(function(t,e,n){const r=t.classList.reduce((r,i)=>{let o,a;const s=i;return(a=i.match(Fu))&&(o=Uu(t,e,a[1])+n.element+a[2],r.add(o),i=i.slice(a[0].length)),(a=i.match(Du))&&(o||(o=Uu(t,e,a[1]),r.add(o)),r.add(`${o}${n.modifier}${a[2]}`),i=i.slice(a[0].length)),i===s&&r.add(s),r},new Set),i=Array.from(r).filter(Boolean);i.length&&t.setAttribute("class",i.join(" "))})(t,n,e)),t},jsx:function(t){return t.walk(t=>{Ku(t,"class","className"),Ku(t,"for","htmlFor")}),t},xsl:function(t){return t.walk(t=>{Wu.test(t.name||"")&&(t.children.length||t.value)&&t.removeAttribute("select")}),t}};var Gu=function(t,e){return Object.keys(e||{}).forEach(n=>{if(n in Vu){const r="object"==typeof e[n]?e[n]:null;t=t.use(Vu[n],r)}}),t},Zu=function(t,e,n){return"string"==typeof e?e=[e]:e&&"object"==typeof e&&!Array.isArray(e)&&(n=e,e=null),t.use(_u).use(Pu,Array.isArray(e)?e.length:null).use(Cu).use(Lu,e).use(Gu,n)};function Yu(t,e){const n=function(t){const e=/\$\{([a-z][\w\-]*)\}/gi,n=[],r=new Map;let i;for(;i=e.exec(t);)r.set(i.index,i);if(r.size){let e=0,i=0,o=t.length,a="";for(;i(function(t,e){const n=t.attributes;for(let r=0,i=n.length;rt;class Qu{constructor(t,e,n){"object"==typeof e&&(n=e,e=null),this.node=t,this._fieldsRenderer=e||Ju,this.open=null,this.beforeOpen="",this.afterOpen="",this.close=null,this.beforeClose="",this.afterClose="",this.text=null,this.beforeText="",this.afterText="",this.indent="",this.newline="",n&&Object.assign(this,n)}clone(){return new this.constructor(this.node,this)}indentText(t){const e=function(t){return(t||"").split(/\r\n|\r|\n/g)}(t);if(1===e.length)return t;const n=this.newline||this.indent?this.newline:" ";return e.map((t,e)=>e?this.indent+t:t).join(n)}renderFields(t){return this._fieldsRenderer(t)}toString(t){const e=this._wrap(this.open,this.beforeOpen,this.afterOpen),n=this._wrap(this.close,this.beforeClose,this.afterClose);return e+this._wrap(this.text,this.beforeText,this.afterText)+(null!=t?t:"")+n}_wrap(t,e,n){return e=null!=e?e:"",n=null!=n?n:"",null!=t?(t=e?t.replace(/^\s+/,""):t,t=n?t.replace(/\s+$/,""):t,e+this.indentText(t)+n):""}}const tf=(t,e)=>e||"";var ef=function(t,e,n){void 0===n&&(n=e,e=null),e=e||tf;const r={index:1};return function t(e,n,r){return e.map(e=>{const i=n(new Qu(e,r));return i?i.toString(t(e.children,n,r)):""}).join("")}(t.children,n,t=>null==t?e(r.index++):function(t,e){const n="object"==typeof t?t:wl(t);let r=-1;n.fields.forEach(t=>{t.index+=e.index,t.index>r&&(r=t.index)}),-1!==r&&(e.index=r+1);return n}(t,r).mark(e))};const nf=/^(.*?)([A-Z_]+)(.*?)$/,rf=91,of=93;function af(t,e){if(null==t)return t;const n=[],r=(t,n,r,i)=>null!=e[r]?n+e[r]+i:"";let i,o,a="",s=0,l=0;for(;l!t||e.index=e.get("inlineBreak"))return!0}for(let n=0,r=t.children.length;nt.join(""),secondary:t=>t.map(t=>t.isBoolean?t.name:`${t.name}=${t.value}`).join(", ")},bf={open:null,close:null,omitName:/^div$/i,attributes:gf};function _f(t,e,n){n=Object.assign({},bf,n);const r=t.node;if(t.indent=e.indent(function(t){let e=t.parent.isTextOnly?-2:-1,n=t;for(;n=n.parent;)e++;return e<0?0:e}(r)),t.newline="\n",cf(r.parent)&&lf(r)||(t.beforeOpen=t.newline+t.indent),r.name){const i=Object.assign({NAME:e.name(r.name),SELF_CLOSE:r.selfClosing?n.selfClose:null},function(t,e,n){n=Object.assign({},gf,n);const r=[],i=[];return t.node.attributes.forEach(n=>{if(n.options.implied&&null==n.value)return null;const o=e.attribute(n.name),a=t.renderFields(n.value);if(vf.test(o))a&&r.push(`#${a}`);else if(yf.test(o))a&&r.push(`.${a.replace(/\s+/g,".")}`);else{const t=null==n.value&&(n.options.boolean||-1!==e.get("booleanAttributes").indexOf(o.toLowerCase()));i.push({name:o,value:a,isBoolean:t})}}),{PRIMARY_ATTRS:n.primary(r)||null,SECONDARY_ATTRS:n.secondary(i)||null}}(t,e,n.attributes));n.omitName&&n.omitName.test(i.NAME)&&i.PRIMARY_ATTRS&&(i.NAME=null),null!=n.open&&(t.open=af(n.open,i)),null!=n.close&&(t.close=af(n.close,i))}return t}const wf=/\n|\r/;const xf=/\n|\r/,kf={none:"[ SECONDARY_ATTRS]",round:"[(SECONDARY_ATTRS)]",curly:"[{SECONDARY_ATTRS}]",square:"[[SECONDARY_ATTRS]"};const Cf=/\n|\r/;const Of={html:function(t,e,n){const r=function(t){const e=Object.assign({},t&&t.format);return e.comment=Object.assign({},df,e.comment),e}(n=Object.assign({},n));return ef(t,n.field,t=>{if(!ff(t=function(t,e){const n=t.node;if(pf(n,e)){t.indent=e.indent(function(t,e){const n=e.get("formatSkip")||[];let r=t.parent.isTextOnly?-2:-1,i=t;for(;i=i.parent;)-1===n.indexOf((i.name||"").toLowerCase())&&r++;return r<0?0:r}(n,e)),t.newline="\n";const r=t.newline+t.indent;cf(n.parent)&&lf(n)||(t.beforeOpen=r,n.isTextOnly&&(t.beforeText=r)),function(t,e){const n=(t.name||"").toLowerCase();if(-1!==e.get("formatForce").indexOf(n))return!0;for(let n=0;n{if(n.options.implied&&null==n.value)return null;const r=e.attribute(n.name);let i=null;if(n.options.boolean||-1!==e.get("booleanAttributes").indexOf(r.toLowerCase())){if(e.get("compactBooleanAttributes")&&null==n.value)return` ${r}`;null==n.value&&(i=r)}return null==i&&(i=t.renderFields(n.value)),n.options.before&&n.options.after?` ${r}=${n.options.before+i+n.options.after}`:` ${r}=${e.quote(i)}`}).join("")}(t,e);t.open=`<${i}${o}${n.selfClosing?e.selfClose():""}>`,n.selfClosing||(t.close=``),function(t,e){const n=t.node;if(!e.enabled||!e.trigger||!n.name)return;const r=t.node.attributes.reduce((t,e)=>(e.name&&null!=e.value&&(t[e.name.toUpperCase().replace(/-/g,"_")]=e.value),t),{});for(let n=0,i=e.trigger.length;nt.map(t=>t.isBoolean?`${t.name}${e.get("compactBooleanAttributes")?"":"=true"}`:`${t.name}=${e.quote(t.value)}`).join(" ")}};return ef(t,(n=n||{}).field,t=>{if(!ff(t=function(t,e){const n=t.node;!n.isTextOnly&&n.value&&(t.beforeText=wf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,r),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&wf.test(t.value)){const n=sf(t.value),r=e.indent(1),i=n.reduce((t,e)=>Math.max(t,e.length),0);return n.map((t,e)=>`${e?r:""}${function(t,e){for(;t.length`${t.name}=true`:t=>t.name,o={open:`[NAME][PRIMARY_ATTRS]${r}[SELF_CLOSE]`,selfClose:"/",attributes:{secondary:t=>t.map(t=>t.isBoolean?i(t):`${t.name}=${e.quote(t.value)}`).join(" ")}};return ef(t,n.field,t=>{if(!ff(t=function(t,e){const n=t.node,r=n.parent;0===e.get("inlineBreak")&&function(t,e){return t&&(t.isTextOnly||e.isInline(t))}(n,e)&&!cf(r)&&null==r.value&&1===r.children.length&&(t.beforeOpen=": ");!n.isTextOnly&&n.value&&(t.beforeText=xf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,o),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&xf.test(t.value)){const n=e.indent(1);return sf(t.value).map((t,e)=>`${n}${e?" ":"|"} ${t}`).join("\n")}return t.value}(n,e)))}return t})},pug:function(t,e,n){const r={open:"[NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)]",attributes:{secondary:t=>t.map(t=>t.isBoolean?t.name:`${t.name}=${e.quote(t.value)}`).join(", ")}};return ef(t,(n=n||{}).field,t=>{if(!ff(t=function(t,e){const n=t.node;!n.isTextOnly&&n.value&&(t.beforeText=Cf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,r),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&Cf.test(t.value)){const n=e.indent(1);return sf(t.value).map(t=>`${n}| ${t}`).join("\n")}return t.value}(n,e)))}return t})}};var Ef=function(t,e,n,r){return"object"==typeof n&&(r=n,n=null),function(t){return!!t&&t in Of}(n)||(n="html"),Of[n](t,e,r)};class Af{constructor(){this.type="css-value",this.value=[]}get size(){return this.value.length}add(t){this.value.push(t)}has(t){return-1!==this.value.indexOf(t)}toString(){return this.value.join(" ")}}const Sf=35,jf=46;function Tf(t){if(t.peek()===Sf){t.start=t.pos,t.next(),t.eat(116)||t.eatWhile(Pf);const e=t.current();if(t.start=t.pos,t.eat(jf)&&!t.eatWhile(il))throw t.error("Unexpected character for alpha value of color");return new Nf(e,t.current())}}class Nf{constructor(t,e){this.type="color",this.raw=t,this.alpha=Number(null!=e&&""!==e?e:1);let n=0,r=0,i=0;if("t"===(t=t.slice(1)))this.alpha=0;else switch(t.length){case 0:break;case 1:n=r=i=t+t;break;case 2:n=r=i=t;break;case 3:n=t[0]+t[0],r=t[1]+t[1],i=t[2]+t[2];break;default:n=(t+=t).slice(0,2),r=t.slice(2,4),i=t.slice(4,6)}this.r=parseInt(n,16),this.g=parseInt(r,16),this.b=parseInt(i,16)}toHex(t){const e=t&&Lf(this.r)&&Lf(this.g)&&Lf(this.b)?Mf:$f;return"#"+e(this.r)+e(this.g)+e(this.b)}toRGB(){const t=[this.r,this.g,this.b];return 1!==this.alpha&&t.push(this.alpha.toFixed(8).replace(/\.?0+$/,"")),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}toString(t){return this.r||this.g||this.b||this.alpha?1===this.alpha?this.toHex(t):this.toRGB():"transparent"}}function Pf(t){return il(t)||ol(t,65,70)}function Lf(t){return!(t%17)}function Mf(t){return(t>>4).toString(16)}function $f(t){return function(t,e){for(;t.lengthnew xd(t.key,t.value)))}class xd{constructor(t,e){this.key=t,this.value=e,this.property=null;const n=e&&e.match(bd);n&&(this.property=n[1],this.value=n[2]),this.dependencies=[]}addDependency(t){this.dependencies.push(t)}get defaultValue(){return null!=this.value?Od(this.value)[0]:null}keywords(){const t=[],e=new Set;let n,r,i=0;for(this.property&&t.push(this);i=o&&(o=s,i=r)}return o>=r?i:null}function Nd(t,e){const n=t&&"object"==typeof t?t[e]:t,r=(n||"").match(/^[\w-@]+/);return r?r[0]:n}function Pd(t){return Md(t,"keyword")}function Ld(t){return Md(t,"numeric")}function Md(t,e){return t&&"object"==typeof t&&t.type===e}function $d(t,e,n){return e.unit?e.unit=n.unitAliases[e.unit]||e.unit:0!==e.value&&-1===Ad.indexOf(t)&&(e.unit=e.value===(0|e.value)?n.intUnit:n.floatUnit),e}var qd=function(t,e,n){(n=Object.assign({},Sd,n)).unitAliases=Object.assign({},Sd.unitAliases,n&&n.unitAliases);const r=function(t){return wd(t.all({type:"string"}))}(e);return t.walk(t=>(function(t,e,n){if(n.property)return function(t,e,n){let r=Ed.slice();e&&(r=r.concat(e.keywords()));const i=[t.name].concat(t.value.value).filter(Boolean).map(t=>("string"==typeof t||"keyword"===t.type)&&Td(t=String(t),r,null,n.fuzzySearchMinScore)||t);return t.name=null,t.value.value=i,t}(t,e.find(t=>t.property===n.property),n);const r=Td(t.name,e,"key",n.fuzzySearchMinScore);if(!r)return"!"===t.name?jd(t,"!important"):t;return r.property?function(t,e,n){const r=t.name;if(t.name=e.property,t.value&&"object"==typeof t.value){const i=e.keywords();if(t.value.size)for(let e,r=0;r{const i=n.node;let o=Fd(i,r);if(i.attributes.length){o=function(t,e){const n=wl(t),r=n.fields.length;if(r)for((e=e.slice()).length>r&&(e=e.slice(0,r-1).concat(e.slice(r-1).join(", ")));e.length;){const t=e.shift(),r=n.fields.shift(),i=t.length-r.length;n.string=n.string.slice(0,r.location)+t+n.string.slice(r.location+r.length);for(let t=0,e=n.fields.length;tFd(t,r)))}return n.open=i.name&&e.name(i.name),n.afterOpen=r.between,n.text=n.renderFields(o||null),!n.open||n.text&&n.text.endsWith(";")||(n.afterText=r.after),e.get("format")&&(n.newline="\n",t.lastChild!==i&&(n.afterText+=n.newline)),n})}function Fd(t,e){return t.value&&"object"==typeof t.value&&"css-value"===t.value.type?t.value.value.map(t=>t&&"object"==typeof t?"color"===t.type?t.toString(e.shortHex):t.toString():String(t)).join(" "):null!=t.value?String(t.value):""}const Dd={css:{between:": ",after:";"},scss:"css",less:"css",sass:{between:": ",after:""},stylus:{between:" ",after:""}};function Bd(t,e){let n=Dd[t];return"string"==typeof n&&(n=Dd[n]),Object.assign({},n,e&&e.format)}var zd=function(t,e,n,r){return"object"==typeof n&&(r=n,n=null),function(t){return!!t&&t in Dd}(n)||(n="css"),Id(t,e,r=Object.assign({},r,{format:Bd(n,r)}))},Ud={html:{a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']",style:"style",script:"script[!src]","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}\x3c!--\x3e${0}\x3c!--xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{}'}};const Hd={latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]}},Kd={wordCount:30,skipCommon:!1,lang:"latin"};function Wd(t,e){return Math.floor(Math.random()*(e-t)+t)}function Vd(t,e){const n=t.length,r=Math.min(n,e),i=new Set;for(;i.size3&&e<=6?Wd(0,1):e>6&&e<=12?Wd(0,2):Wd(1,4);for(let i,o=0;o1)return!0;t=t.parent}return!1}(t);return t.repeat||function(t){return!t.parent}(t.parent)?(t.value=Yd(n,e.wordCount,r),t.name=t.parent.name?bu(t.parent.name):null):(t.parent.value=Yd(n,e.wordCount,r),t.remove()),t};class Jd{constructor(t,e){this.key=t,this.value=e}}class Qd{constructor(t){this._string=new Map,this._regexp=new Map,this._disabled=!1,this.load(t)}get disabled(){return this._disabled}disable(){this._disabled=!0}enable(){this._disabled=!1}set(t,e){if("string"==typeof t)t.split("|").forEach(t=>this._string.set(t,new Jd(t,e)));else{if(!(t instanceof RegExp))throw new Error("Unknow snippet key: "+t);this._regexp.set(t,new Jd(t,e))}return this}get(t){if(this.disabled)return;if(this._string.has(t))return this._string.get(t);const e=Array.from(this._regexp.keys());for(let n=0,r=e.length;nthis.set(e,t)):t&&"object"==typeof t&&Object.keys(t).forEach(e=>this.set(e,t[e]))}reset(){this._string.clear(),this._regexp.clear()}values(){if(this.disabled)return[];const t=Array.from(this._string.values()),e=Array.from(this._regexp.values());return t.concat(e)}}var tp=class{constructor(t){this._registry=[],Array.isArray(t)?t.forEach((t,e)=>this.add(e,t)):"object"==typeof t&&this.add(t)}get(t){for(let e=0;ee.level-t.level),n}remove(t){this._registry=this._registry.filter(e=>e.level!==t&&e.store!==t)}resolve(t){for(let e=0;e{const r=n.key instanceof RegExp?"regexp":"string";t.type&&t.type!==r||e.has(n.key)||e.set(n.key,n)};return this._registry.forEach(t=>{t.store.values().forEach(n)}),Array.from(e.values())}clear(){this._registry.length=0}},ep={indent:"\t",tagCase:"",attributeCase:"",attributeQuotes:"double",format:!0,formatSkip:["html"],formatForce:["body"],inlineBreak:3,compactBooleanAttributes:!1,booleanAttributes:["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],selfClosingStyle:"html",inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"]};function np(t,e){return e?"upper"===e?t.toUpperCase():t.toLowerCase():t}var rp=class{constructor(t){this.options=Object.assign({},ep,t),this.quoteChar="single"===this.options.attributeQuotes?"'":'"'}get(t){return this.options[t]}quote(t){return`${this.quoteChar}${null!=t?t:""}${this.quoteChar}`}name(t){return np(t,this.options.tagCase)}attribute(t){return np(t,this.options.attributeCase)}isBooleanAttribute(t){return t.options.boolean||-1!==this.get("booleanAttributes").indexOf((t.name||"").toLowerCase())}selfClose(){switch(this.options.selfClosingStyle){case"xhtml":return" /";case"xml":return"/";default:return""}}indent(t){t=t||0;let e="";for(;t--;)e+=this.options.indent;return e}isInline(t){return"string"==typeof t?-1!==this.get("inlineElements").indexOf(t.toLowerCase()):null!=t.name?this.isInline(t.name):t.isTextOnly}field(t,e){return this.options.field(t,e)}};function ip(t,e){return Ic(t).use(vu,e.snippets).use(Xu,e.variables).use(Zu,e.text,e.options)}function op(t,e){return"string"==typeof t&&(t=vd(t)),t.use(qd,e.snippets,e.options)}const ap=/^lorem([a-z]*)(\d*)$/i;function sp(t){const e={},n=t.name.match(ap);return n[1]&&(e.lang=n[1]),n[2]&&(e.wordCount=+n[2]),Xd(t,e)}const lp={lang:"en",locale:"en-US",charset:"UTF-8"},cp=["css","sass","scss","less","stylus","sss"],up={type:null,syntax:"html",field:(t,e)=>e||"",text:null,profile:null,variables:{},snippets:{},options:null,format:null};function fp(t,e){return"stylesheet"===mp((e=pp(e)).type,e.syntax)?function(t,e){return e=e||{},"string"==typeof t&&(t=op(t,e)),zd(t,e.profile,e.syntax,e)}(t,e):function(t,e){return e=Object.assign({},e),"string"==typeof t&&(t=ip(t,e)),Ef(t,e.profile,e.syntax,e)}(t,e)}function dp(t,e,n){return t&&"markup"!==t&&"stylesheet"!==t&&(n=e,e=t,t="markup"),n instanceof tp?n:function(t,e,n){const r=[];"markup"===t?r.push(Ud.html):"stylesheet"===t&&r.push(Ud.css),e in Ud&&-1===r.indexOf(Ud[e])&&r.push(Ud[e]),Array.isArray(n)?n.forEach(t=>{r.push("string"==typeof t?Ud[t]:t)}):"object"==typeof n&&r.push(n);const i=new tp(r.filter(Boolean));return"stylesheet"!==t&&i.get(0).set(ap,sp),i}(t,e,n)}function pp(t){return"string"==typeof t&&(t={syntax:t}),null==(t=Object.assign({},up,t)).type&&t.syntax&&(t.type=hp(t.syntax)?"stylesheet":"markup"),t.format=Object.assign({field:t.field},t.format),t.profile=function(t){return t.profile instanceof rp?t.profile:new rp(t.profile)}(t),t.variables=Object.assign({},lp,t.variables),t.snippets=dp(t.type,t.syntax,t.snippets),t}function hp(t){return-1!==cp.indexOf(t)}function mp(t,e){return t?"stylesheet"===t?"stylesheet":"markup":hp(e)?"stylesheet":"markup"}const vp=/^([a-z\-]+)(?:\s*:\s*([^\n\r]+))?$/,yp=45;function gp(t){return function(t){t=t.sort(_p);const e=[];for(let n,r,i=0;inew bp(t.key,t.value)))}class bp{constructor(t,e){this.key=t,this.value=e,this.property=null;const n=e&&e.match(vp);n&&(this.property=n[1],this.value=n[2]),this.dependencies=[]}addDependency(t){this.dependencies.push(t)}get defaultValue(){return null!=this.value?xp(this.value)[0]:null}keywords(){const t=[],e=new Set;let n,r,i=0;for(this.property&&t.push(this);it.charCodeAt(0))}const Wp=Kp("\x3c!--"),Vp=Kp("--\x3e");var Gp=function(t){const e=t.pos;if(Hp(t,Wp,Vp,!0)){const n=Op(t,e);return n.type="comment",n}return null};const Zp=Kp("");var Xp=function(t){const e=t.pos;if(Hp(t,Zp,Yp,!0)){const n=Op(t,e);return n.type="cdata",n}return null};const Jp={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function Qp(t){if(60===t.peek())return Gp(t)||Xp(t)||Bp(t)}function th(t,e){const n=t.pos;for(;!t.eof();){if(Up(t,e))return t.pos=t.start,Bp(t);t.next()}return t.pos=n,null}function eh(t){return t[t.length-1]}var nh=function(t,e){e=Object.assign({},Jp,e);const n="string"==typeof t?new Js(t):t,r=new Cp(n,"root"),i=new Set(e.empty),o=e.special.reduce((t,e)=>t.set(e,Kp(``)),new Map),a=(t,n)=>t.selfClosing||!e.xml&&i.has(n);let s,l,c,u=[r];for(;!n.eof();)if(s=Qp(n))if(c=(f=s).name?f.name.value.toLowerCase():`#${f.type}`,"open"===s.type)l=new Cp(n,"tag",s),eh(u).addChild(l),o.has(c)?l.close=th(n,o.get(c)):a(s,c)||u.push(l);else if("close"===s.type){for(let t=u.length-1;t>0;t--)if(u[t].name.toLowerCase()===c){u[t].close=s,u=u.slice(0,t);break}}else eh(u).addChild(new Cp(n,s.type,s));else n.next();var f;return r};const rh=(t,e="")=>`\${${t}${e?":"+e:""}}`;function ih(t,e,n){e=e||t.getCursor();const r=function(t,e){const n=t.getMode();if("jsx"===n.name||"javascript"===n.name)return n.name;const r=t.getModeAt(e);return"xml"===r.name?"html":r.name}(t,e),i=Xs(Object.assign({field:rh},t.getOption("emmet"),n),{syntax:r}),o=t.getModeAt(e);return"jsx"===r?(i.profile=Object.assign({selfClosingStyle:"xml"},i.profile),i.options=Object.assign({jsx:!0},i.options)):"xml"===o.name&&(i.profile=Object.assign({selfClosingStyle:o.configuration},i.profile)),i}const oh=10;class ah extends Js{constructor(t,e,n){super();const r=t.constructor;this.editor=t,this.start=this.pos=e||r.Pos(0,0);const i=t.lastLine();this._eof=n?n.to:r.Pos(i,this._lineLength(i)),this._sof=n?n.from:r.Pos(0,0)}sof(){return sh(this.pos,this._sof)<=0}eof(){return sh(this.pos,this._eof)>=0}limit(t,e){return new this.constructor(this.editor,t,{from:t,to:e})}peek(){const{line:t,ch:e}=this.pos,n=this.editor.getLine(t);return e=this._lineLength(this.pos.line)&&(this.pos.line++,this.pos.ch=0),this.eof()&&(this.pos=Object.assign({},this._eof)),t}return NaN}backUp(t){const e=this.editor.constructor;let{line:n,ch:r}=this.pos;for(r-=t||1;n>=0&&r<0;)n--,r+=this._lineLength(n);return this.pos=n<0||r<0?e.Pos(0,0):e.Pos(n,r),this.peek()}current(){return this.substring(this.start,this.pos)}substring(t,e){return this.editor.getRange(t,e)}error(t){const e=new Error(`${t} at line ${this.pos.line}, column ${this.pos.ch}`);return e.originalMessage=t,e.pos=this.pos,e.string=this.string,e}_lineLength(t){const e=t===this.editor.lastLine();return this.editor.getLine(t).length+(e?0:1)}}function sh(t,e){return t.line-e.line||t.ch-e.ch}function lh(t,e,n){let r=function(t){return Array.isArray(t)?t:t.split(/\r\n|\r|\n/g)}(e);const i=function(t){return t.getOption("indentWithTabs")?"\t":ch(" ",t.getOption("indentUnit"))}(t);return"\t"!==i&&(r=r.map(t=>t.replace(/^\t+/,t=>ch(i,t.length)))),n&&(r=r.map((t,e)=>e?n+t:t)),r.join("\n")}function ch(t,e){let n="";for(;00&&dh(e,t.to)<0:dh(e,t.from)>=0&&dh(e,t.to)<=0}function dh(t,e){return t.line-e.line||t.ch-e.ch}function ph(t){return{from:t.start,to:t.end}}function hh(t,e){const n=e.line;let r,i=e.ch;for(;i>=0;){if("property"===(r=t.getTokenAt({line:n,ch:i})).type)return r.string;if(r.start===i)break;i=r.start}}function mh(t,e){const n=t.getModeAt(e);if(n&&"css"===n.name){const n=t.getTokenAt(e),r=n.state&&n.state.localState||n.state;return r&&r.context&&"prop"===r.context.type}return!1}function vh(t,e,n){const r=t.getLine(e.from.line).match(/^\s+/);let i=lh(t,n,r&&r[0]);const o=wl(i);return t.operation(()=>{t.replaceRange(o.string,e.from,e.to);const n=t.indexFromPos(e.from);if(o.fields.length){const e=o.fields[0],r=t.posFromIndex(e.location+n),i=t.posFromIndex(e.location+e.length+n);t.setSelection(r,i)}else t.setCursor(t.posFromIndex(n+o.string.length));return!0})}const yh="emmet-abbreviation";function gh(t,e,n){const r=bh(t,e);if(r&&r.model)return r.model;const i=function(t,e,n){const r=ih(t,e);if(n&&!function(t,e,n){const r=t.getTokenTypeAt(e);if("stylesheet"===n.type)return"comment"!==r&&"string"!==r;if("html"===n.syntax)return null===r;if("slim"===n.syntax||"pug"===n.syntax)return null===r||"tag"===r||r&&/attribute/.test(r);if("haml"===n.syntax)return null===r||"attribute"===r;if("jsx"===n.syntax)return!0;return!1}(t,e,r))return null;const i=ec(t.getLine(e.line),e.ch,{lookAhead:!0,syntax:r.type,prefix:"jsx"===r.syntax&&t.getOption("jsxBracket")?"<":""});if(i){const o={line:e.line,ch:i.start},a={line:e.line,ch:i.end};return"stylesheet"===r.type&&n&&mh(t,e)&&(r.options=Object.assign({property:hh(t,e)},r.options)),{abbreviation:i.abbreviation,range:{from:o,to:a},config:r}}}(t,e,n);if(i)try{const e=new kh(i.abbreviation,i.range,i.config);return e.valid(t,n)?e:null}catch(t){}}function bh(t,e){const n=t.findMarksAt(e);for(let e,r=0;rt.name),i=n.state&&n.state.localState||n.state;return!r||("sass"===this.config.syntax||i&&i.context&&"block"===i.context.type)}}function Ch(t,e){if(t.somethingSelected())return t.constructor.Pass;const n=gh(t,t.getCursor(),e);return n?(n.insert(t),_h(t),!0):t.constructor.Pass}function Oh(t){const e=t.listSelections().map(e=>(function(t,e){if(n=e.anchor,r=e.head,n.sticky===r.sticky&&0===function(t,e){return t.line-e.line||t.ch-e.ch}(n,r)){const n=e.anchor;if("xml"===t.getModeAt(n).name){const e=t.getTokenAt(n),r=t.getTokenAt(Object.assign({},n,{ch:n.ch+1}));return"tag bracket"===e.type&&">"===e.string&&"tag bracket"===r.type&&"{let n=t.listSelections();const r=t.doc.lineSeparator(),i=r+r;for(let o=n.length-1;o>=0;o--)t.replaceRange(e[o]?i:r,n[o].anchor,n[o].head,"+newline");n=t.listSelections();for(let r=0;r{if(e[r]){const e=n.from().line-1,r={line:e,ch:t.getLine(e).length};return{anchor:r,head:r}}return n}))})}function Eh(t){const e=function(t){if(t.somethingSelected()){const e=t.listSelections().filter(t=>t.anchor!==t.head)[0];if(e)return dh(e.anchor,e.head)<0?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}return function(t,e){const n=t.getEmmetDocumentModel(),r=n&&n.nodeForPoint(e);if(!r)return null;if(Ah(r.open,e)||Ah(r.close,e))return ph(r);const i=r.open.end,o=r.close?r.close.start:r.open.end;return function(t,e,n){const r=new ah(t,e);if(r.eatWhile(ll),e=r.pos,n){for(r.pos=n,r.backUp();!r.sof()&&ll(r.peek());)r.backUp();r.next(),n=r.pos}else n=e;return{from:e,to:n}}(t,i,o)}(t,t.getCursor())}(t);if(e){const n=t.getOption("emmetPrompt")||Sh,r=t.getRange(e.from,e.to,"\n").split("\n").map(t=>t.trim());n(t,"Enter abbreviation to wrap with:",n=>{if(n){new kh(n,e,ih(t,e.from,{text:r})).insert(t)}})}else console.warn("Nothing to wrap")}function Ah(t,e){return t&&fh(ph(t),e)}function Sh(t,e,n){n(window.prompt(e))}function jh(t,e){e=e||t.getCursor();let n=[];const r=gh(t,e,!0);r&&r.abbreviation!==r.snippet&&n.push(function(t,e,n){let r=n.preview;r.length>500&&(r=r.slice(0,500)+"...");return new Ph("expanded-abbreviation",t,n.range,"Expand abbreviation",r,(t,e)=>n.insert(t,e))}(t,0,r));const i=r?r.config:ih(t,e);return n="stylesheet"===i.type?n.concat(function(t,e,n){const r=Nh(t.getLine(e.line).slice(0,e.ch),/[\w-@$]/);if(r){const i={from:{line:e.line,ch:e.ch-r.length},to:e};if(!n.options||!n.options.property)return Th(t,e,n).filter(t=>t.key!==r&&0===t.key.indexOf(r)).map(e=>new Ph("snippet",t,i,e.key,e.preview,e.snippet));{const o=n.options.property.toLowerCase(),a=Th(t,e,n).find(t=>t.property&&t.property===o);if(a&&a.keywords.length)return a.keywords.map(e=>0===e.key.indexOf(r)&&new Ph("value",t,i,e.key,e.preview,e.snippet)).filter(Boolean)}}return[]}(t,e,i)):n.concat(function(t,e,n){const r=Nh(t.getLine(e.line).slice(0,e.ch),/[\w:\-$@]/);if(r){const i={from:{line:e.line,ch:e.ch-r.length},to:e};return Th(t,e,n).filter(t=>t.key!==r&&0===t.key.indexOf(r)).map(e=>new Ph("snippet",t,i,e.key,e.preview,e.snippet))}return[]}(t,e,i)),{type:i.type,syntax:i.syntax,abbreviation:r,completions:n.filter(Boolean)}}function Th(t,e,n){const{type:r,syntax:i}=n;t.state.emmetCompletions||(t.state.emmetCompletions={});const o=t.state.emmetCompletions;if(!(i in o)){const t=dp(r,i,n.snippets);o[i]="stylesheet"===r?function(t){return kp(t).map(t=>{let e=t.property;const n=t.keywords();return n.length?e+=`: ${uh(n.join(" | "))}`:t.value&&(e+=`: ${uh(t.value)}`),{key:t.key,value:t.value,snippet:t.key,property:t.property,keywords:n.map(t=>{const e=t.match(/^[\w-]+/);return e&&{key:e[0],preview:uh(t),snippet:t}}).filter(Boolean),preview:e}})}(t):function(t,e){return t.all({type:"string"}).map(t=>({key:t.key,value:t.value,preview:uh(fp(t.value,e)),snippet:t.key}))}(t,n)}return o[i]}function Nh(t,e){let n=t.length;for(;n>0&&e.test(t[n-1]);)n--;return t.slice(n)}class Ph{constructor(t,e,n,r,i,o){this.type=t,this.editor=e,this.range=n,this.name=r,this.preview=i,this.snippet=o,this._inserted=!1}insert(){this._inserted||(this._inserted=!0,"function"==typeof this.snippet?this.snippet(this.editor,this.range):vh(this.editor,this.range,this.snippet),_h(this.editor))}}class Lh{constructor(t,e,n){this.dom=t,this.type=e,this.syntax=n}nodeForPoint(t,e){let n=this.dom.firstChild,r=null;for(;n;)fh(ph(n),t,e)?(r=n,n=n.firstChild):n=n.nextSibling;return r}}function Mh(t){const e=function(t){const e=t.getMode();if("htmlmixed"===e.name)return"html";return"xml"===e.name?e.configuration:e.name}(t);return function(t,e){const n=new ah(t),r="xml"===e;try{return new Lh(nh(n,{xml:r}),"html",e||"html")}catch(t){console.warn(t)}}(t,e)}function $h(t){t.state._emmetModel=null}const qh="emmet-open-tag",Rh="emmet-close-tag";function Ih(t,e){e=e||t.getCursor();const n=Fh(t);if(n)if(fh(n.open.find(),e)){if(!n.close||zh(t,n.open)===zh(t,n.close))return n}else if(n.close&&fh(n.close.find(),e)&&zh(t,n.open)===zh(t,n.close))return n;Dh(t);const r=function(t,e){const n=t.getEmmetDocumentModel();return n&&n.nodeForPoint(e||t.getCursor())}(t,e);if(r&&"tag"===r.type)return{open:Bh(t,r.open.name,qh),close:r.close&&Bh(t,r.close.name,Rh)}}function Fh(t){let e,n;return t.getAllMarks().forEach(t=>{t.className===qh?e=t:t.className===Rh&&(n=t)}),e?{open:e,close:n}:null}function Dh(t){t.getAllMarks().forEach(t=>{t.className!==qh&&t.className!==Rh||t.clear()})}function Bh(t,e,n){return t.markText(e.start,e.end,{className:n,inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1})}function zh(t,e){const n=e.find();return n?t.getRange(n.from,n.to):""}function Uh(t,e){const n=Fh(t),r=e.from;n&&(fh(n.open.find(),r)&&n.close?Hh(t,n.open,n.close):n.close&&fh(n.close.find(),r)&&Hh(t,n.close,n.open))}function Hh(t,e,n){const r=function(t,e){const n=e.find();return n?t.getRange(n.from,n.to):""}(t,e),i=n.find(),o=r.match(/[\w:.-]+/),a=r?o&&o[0]:"";null!=a?t.getRange(i.from,i.to)!==a&&t.replaceRange(a,i.from,i.to):Dh(t)}var Kh=function(t){Object.assign(t.commands,{emmetExpandAbbreviation:t=>Ch(t,!0),emmetExpandAbbreviationAll:t=>Ch(t,!1),emmetInsertLineBreak:Oh,emmetWrapWithAbbreviation:Eh});const e=t=>(function(t,e){const n=bh(t,e);if(n)return n;_h(t);const r=gh(t,e,!0);return r?wh(t,r):void 0})(t,t.getCursor());t.defineOption("markEmmetAbbreviation",!0,(t,n)=>{n?t.on("change",e):(t.off("change",e),_h(t))}),t.defineOption("autoRenameTags",!0,(t,e)=>{e?t.on("change",Uh):t.off("change",Uh)}),t.defineOption("jsxBracket",!0),t.defineOption("markTagPairs",!1,(t,e)=>{e?(t.on("cursorActivity",Ih),t.on("change",$h)):(t.off("cursorActivity",Ih),t.off("change",$h),$h(t),Dh(t))}),t.defineOption("emmet",{}),t.defineExtension("getEmmetCompletions",(function(t,e){const n=this;"boolean"==typeof t&&(e=t,t=null),t=t||n.getCursor();const r=jh(n,t);if(r&&r.completions.length)return n.getOption("markEmmetAbbreviation")&&!bh(n,t)&&e&&(_h(n),wh(r.model)),{from:r.abbreviation.range.from,to:r.abbreviation.range.to,list:r.completions}})),t.defineExtension("getEmmetAbbreviation",(function(t,e){return gh(this,t||this.getCursor(),e)})),t.defineExtension("findEmmetMarker",(function(t){return bh(this,t||this.getCursor())})),t.defineExtension("getEmmetDocumentModel",(function(){return this.getOption("markTagPairs")?function(t){return t.state._emmetModel||(t.state._emmetModel=Mh(t)),t.state._emmetModel}(this):Mh(this)}))},Wh=(n("1p+/"),n("ewDg"),n("+dQi"),n("RNWO"),n("bXjK"),n("Ku0u"),n("C2zF"),n("uTOq"),n("McUL"),qo({name:"templates-tree",props:{item:{type:Object,required:!0}},data:function(){return{}},computed:{isDir:function(){return this.$props.item.children.length>0},title:function(){return this.trans("#"+this.$props.item.name)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"tree_view__item"},[t.isDir?[n("a",{staticClass:"tree_view__link",attrs:{href:"#collapse-"+t.item.id,"data-toggle":"collapse"}},[n("i",{staticClass:"fa fa-folder-o text-muted"}),t._v(" "+t._s(t.item.name)+"\r\n ")]),t._v(" "),n("ul",{staticClass:"tree_view__subitem collapse",attrs:{id:"collapse-"+t.item.id}},t._l(t.item.children,(function(t,e){return n("templates-tree",{key:t.id,attrs:{item:t}})})),1)]:[n("a",{staticClass:"tree_view__link",attrs:{href:"#","data-path":t.item.filename}},[n("i",{staticClass:"fa fa-file-text-o text-muted"}),t._v(" "+t._s(t.item.name)+"\r\n ")])]],2)}),[],!1,null,null,null).exports);function Vh(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Gh(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Vh(o,r,i,a,s,"next",t)}function s(t){Vh(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Zh(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e>>0},nm=[{path:"/templates",name:"templates",component:qo({name:"templates-index",components:{"templates-tree":Wh},props:{model:{type:Function,required:!0}},data:function(){return{filename:null,editor:null}},computed:Xh({},Object(g.c)({meta:"meta/all"}),{theme:function(){return this.meta.theme||"Загрузка шаблонов темы ..."},template:function(){return this.$props.model.query().where("filename",this.filename).first()},tmode:function(){var t=this.filename?this.filename.split(".").pop():"php";return Qh[t]||Qh.default},templates:function(){var t=this.$props.model.all(),e=[],n=new Map,r=t.map((function(t,r,i){var o=t.filename.split("\\"),a=o.pop(),s=o.length?em(o):0;return function(t,e,n){t.length&&t.reduce((function(t,r,i,o){var a=t.length?em(t):0;t.push(r);var s=em(t);return e.has(s)||(e.set(s),n.push({id:s,name:r,parent:a})),t}),[])}(o,n,e),Xh({},t,{name:a,parent:s})})),i=[].concat(e,Zh(r));return i.forEach((function(t,e,n){t.children=n.filter((function(e){return t.id===e.parent}))})),i.filter((function(t){return 0===t.parent}))}}),watch:{filename:function(t,e){t&&this.onChangeFileName()}},mounted:function(){var t=Gh(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("templates");case 2:return t.next=4,this.$props.model.$fetch();case 4:this.initialize();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{chooseTemplate:function(t){var e=t.target.dataset.path;e&&(this.filename=e)},onChangeFileName:function(){this.editor.setOption("mode",this.tmode),this.editor.setValue(this.template.content),this.editor.getDoc().clearHistory(),window.scrollTo({top:0,behavior:"smooth"})},createTemplate:function(){var t=this,e=prompt("Задайте имя новому файлу: *.blade.php","new");e&&this.$props.model.$create({data:{filename:e+".blade.php",content:""}}).then((function(e){return t.filename=e.filename}))},updateTemplate:function(){this.template&&this.template.id&&this.$props.model.$update({params:{id:this.template.id},data:{filename:this.template.filename,content:this.template.content}})},initialize:function(){var t=this;Kh(Ks.a),this.editor=Ks.a.fromTextArea(this.$refs.codeEditor,tm),this.editor.on("change",(function(e){t.template.id&&t.$props.model.update({where:t.template.id,data:{content:e.getValue()}})})),document.addEventListener("keydown",this.onSaveHandler)},destroy:function(){var t=this.editor.getWrapperElement();t&&t.remove&&t.remove(),this.editor.off("change"),document.removeEventListener("keydown",this.onSaveHandler)},onSaveHandler:function(t){t.ctrlKey&&t.keyCode=="S".charCodeAt(0)&&(t.preventDefault(),this.updateTemplate())}},beforeDestroy:function(){var t=Gh(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:this.destroy();case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("link",{attrs:{href:t.skin("css/code-editor.css"),rel:"stylesheet"}}),t._v(" "),n("nav",{staticClass:"navbar navbar-expand navbar-dark bg-primary justify-content-between"},[n("a",{staticClass:"navbar-brand",attrs:{href:"#"}},[t._v(t._s(t.theme))]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"collapse navbar-collapse",attrs:{id:"bs-navbar"}},[n("ul",{staticClass:"navbar-nav ml-auto"},[n("li",{staticClass:"nav-item"},[n("a",{staticClass:"nav-link",attrs:{href:"#",title:"Создать шаблон"},on:{click:function(e){return e.preventDefault(),t.createTemplate(e)}}},[n("i",{staticClass:"fa fa-plus"})])]),t._v(" "),t._m(1)])])]),t._v(" "),n("form",{attrs:{method:"post"},on:{submit:function(t){t.preventDefault()}}},[n("div",{staticClass:"container-fluid"},[n("div",{staticClass:"row"},[n("nav",{staticClass:"col-md-3 bg-light sidebar",on:{click:function(e){return e.preventDefault(),t.chooseTemplate(e)}}},[n("ul",{staticClass:"tree_view__list"},t._l(t.templates,(function(t,e){return n("templates-tree",{key:t.id,attrs:{item:t}})})),1)]),t._v(" "),n("main",{staticClass:"col-md-9 ml-sm-auto p-3 border-bottom border-right"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[n("input",{staticClass:"form-control",attrs:{type:"text",readonly:"",placeholder:"Выберите шаблон для редактирования ...",autocomplete:"off",required:""},domProps:{value:t.template&&t.template.filename}}),t._v(" "),n("div",{staticClass:"input-group-append"})])]),t._v(" "),n("div",{staticClass:"form-group border"},[n("textarea",{ref:"codeEditor",staticClass:"form-control",attrs:{value:"",rows:"12"}}),t._v(" "),t.template&&t.template.exists?n("div",{staticClass:"status d-flex",staticStyle:{"background-color":"#f7f7f7","border-top":"1px solid #ddd"}},[n("small",{staticClass:"template__title p-2"},[n("span",{staticClass:"text-muted"},[t._v("Дата изменения:")]),t._v(" "+t._s(t.template.modified))]),t._v(" "),n("small",{staticClass:"template__title p-2 ml-auto"},[n("span",{staticClass:"text-muted"},[t._v("Размер:")]),t._v(" "+t._s(t.template.size))])]):t._e()]),t._v(" "),t.template&&t.template.exists?n("div",{staticClass:"d-flex"},[[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"button",title:"Ctrl+S"},on:{click:function(e){return e.preventDefault(),t.updateTemplate(e)}}},[t._m(2),t._v(" "),n("span",{staticClass:"d-none d-md-inline"},[t._v("Сохранить")])])]],2):t._e()])])])]),t._v(" "),t._m(3)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","data-target":"#bs-navbar"}},[e("span",{staticClass:"navbar-toggler-icon"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#","data-toggle":"modal","data-target":"#hotkeys"}},[e("i",{staticClass:"fa fa-leanpub"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"hotkeys",tabindex:"-1",role:"dialog"}},[n("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h4",[t._v("Справка")]),t._v(" "),n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),n("div",{staticClass:"modal-body"},[n("h5",[t._v("Сочетания клавиш codemirror")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col col-xs-6"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[n("kbd",[t._v("Ctrl + S")])]),t._v(" "),n("td",[t._v("сохранить шаблон")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("F11")])]),t._v(" "),n("td",[t._v("полноэкранный режим")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Ctrl+E")])]),t._v(" "),n("td",[t._v("развернуть аббревиатуру ("),n("a",{attrs:{href:"http://docs.emmet.io/cheat-sheet/",target:"_blank",title:"Emmet cheat sheet"}},[t._v("emmet")]),t._v(")")])])])])]),t._v(" "),n("div",{staticClass:"col col-xs-6"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[n("kbd",[t._v("Ctrl + F")])]),t._v(" "),n("td",[t._v("начать поиск")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Ctrl + G")])]),t._v(" "),n("td",[t._v("найти далее")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Shift + Ctrl + F")])]),t._v(" "),n("td",[t._v("заменить")])])])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"cancel","data-dismiss":"modal"}},[t._v("Закрыть")])])])])])}],!1,null,null,null).exports,meta:{title:"Редактор шаблонов текущей темы сайта"},props:function(t){return{model:Ir}}}],rm={name:"themes-index",data:function(){return{}},computed:{},created:function(){},methods:{}},im=(n("TepM"),[{path:"/themes",name:"themes",component:qo(rm,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"row"},[this._v("\n Themes\n")])}),[],!1,null,"135435cd",null).exports,meta:{title:"Themes on the your site."}}]);function om(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function am(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sm=[{path:"/users",name:"users",component:qo({name:"users",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},computed:{collection:function(){return this.model.all()},isOnline:function(){return function(t){return t?"text-success":"text-warning"}},isActive:function(){return function(t){return t?"fa fa-times text-warning":"fa fa-check text-success"}}},mounted:function(){this.loadFromJsonPath("users")},beforeDestroy:function(){this.$props.model.deleteAll()},methods:{toggleIsActive:function(t){console.log(t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("div",{staticClass:"btn-group d-flex ml-auto mr-auto"},[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"privileges"},title:"Привилегии"}},[n("i",{staticClass:"fa fa-user-secret"})]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields"},title:"Дополнительные поля"}},[n("i",{staticClass:"as-icon"},[t._v("χφ")])]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"users.settings"},title:"Настройки"}},[n("i",{staticClass:"fa fa-cogs"})])],1)]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Имя")]),t._v(" "),n("th",[t._v("Группа")]),t._v(" "),n("th",{staticClass:"d-print-none"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Зарегистрирован")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Был активен")]),t._v(" "),n("th",[n("i",{staticClass:"fa fa-newspaper-o"})]),t._v(" "),n("th",[n("i",{staticClass:"fa fa-comments-o"})]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действия")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("b",{class:t.isOnline(r.is_online)},[t._v(" • ")]),t._v(" "),n("router-link",{attrs:{to:{name:"user.edit",params:r}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(t._f("trans")(r.role)))]),t._v(" "),n("td",{staticClass:"d-print-none"},[t._v(t._s(r.email))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.created_at))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.logined_at||"Не заходил"))]),t._v(" "),n("td",[t._v(t._s(r.articles_count))]),t._v(" "),n("td",[t._v(t._s(r.comments_count))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"user.edit",params:r}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Имя")]),t._v(" "),n("td",[t._v("Группа")]),t._v(" "),n("td",{staticClass:"d-print-none"},[t._v("Email")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Зарегистрирован")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Был активен")]),t._v(" "),n("td",[n("i",{staticClass:"fa fa-newspaper-o"})]),t._v(" "),n("td",[n("i",{staticClass:"fa fa-comments-o"})]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,meta:{title:"Список пользователей"},props:function(t){return{model:xn}}},{path:"/users/:id/edit",name:"user.edit",component:qo({name:"user-edit",components:{"image-uploader":qa},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:{}}},computed:function(t){for(var e=1;e0}}),mounted:function(){this.$props.model.$get({params:{id:this.$props.id}}).then(this.fillForm)},beforeDestroy:function(){this.$props.model.deleteAll()},methods:{fillForm:function(t){this.form=Object.assign({},this.form,{id:t.id,name:t.name,role:t.role,email:t.email,password:null,password_confirmation:null})},onSubmit:function(t){Notification.warning({message:"This feature is not implemented!"})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-6"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[n("i",{staticClass:"fa fa-th-list"}),t._v(" Редактирование пользователя "),n("b",[t._v(t._s(t.form.name))])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Псевдоним")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Группа")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.role,expression:"form.role"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"role",e.target.multiple?n:n[0])}}},t._l(t.roles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(e)))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Почта")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Пароль")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{type:"password",autocomplete:"new-password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Подтверждение пароля")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password_confirmation,expression:"form.password_confirmation"}],staticClass:"form-control",attrs:{type:"password",autocomplete:"off"},domProps:{value:t.form.password_confirmation},on:{input:function(e){e.target.composing||t.$set(t.form,"password_confirmation",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-7 offset-sm-5"},[n("div",{staticClass:"d-flex"},[t._m(0),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"users"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Редактирование пользователя"},props:function(t){return{model:xn,id:parseInt(t.params.id,10)}}},{path:"/users/settings",name:"users.settings",component:qo({name:"users-settings",extends:Za,data:function(){return{entity:"users"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_allow_register,expression:"form.auth_allow_register"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.auth_allow_register)?t._i(t.form.auth_allow_register,null)>-1:t.form.auth_allow_register},on:{change:function(e){var n=t.form.auth_allow_register,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"auth_allow_register",n.concat([null])):o>-1&&t.$set(t.form,"auth_allow_register",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"auth_allow_register",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_username,expression:"form.auth_username"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"auth_username",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"name"}},[t._v("Псевдоним")]),t._v(" "),n("option",{attrs:{value:"email"}},[t._v("Почта")])])])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.avatar_max_width,expression:"form.avatar_max_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20"},domProps:{value:t.form.avatar_max_width},on:{input:function(e){e.target.composing||t.$set(t.form,"avatar_max_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.avatar_max_height,expression:"form.avatar_max_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20"},domProps:{value:t.form.avatar_max_height},on:{input:function(e){e.target.composing||t.$set(t.form,"avatar_max_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.gravatar_used,expression:"form.gravatar_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.gravatar_used)?t._i(t.form.gravatar_used,null)>-1:t.form.gravatar_used},on:{change:function(e){var n=t.form.gravatar_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"gravatar_used",n.concat([null])):o>-1&&t.$set(t.form,"gravatar_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"gravatar_used",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(8),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Разрешить регистрацию")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Разрешить новым пользователям регистрироваться на сайте.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Идентификация пользователя")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите, что для входа на сайт помимо пароля требуется ввести пользователю.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Аватар")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать сервис "),e("i",[this._v("gravatar.com")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки пользователей"}}];function lm(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var cm=qo({name:"x_fields",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},mounted:function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){lm(o,r,i,a,s,"next",t)}function s(t){lm(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("x_fields");case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{destroy:function(t){confirm(" Вы уверены, что хотите безвозвратно удалить поле [".concat(t.title,"] \n из таблицы [").concat(t.extensible,"] со всеми связанными данными?"))&&this.$props.model.$delete({params:{id:t.id}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields.create"}}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Создать")]),t._v(" "),n("div",{staticClass:"btn-group d-flex mx-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/x_fields"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",title:"Печать",onclick:"window.print()"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Идентификатор")]),t._v(" "),n("th",[t._v("Расширяемая таблица")]),t._v(" "),n("th",[t._v("Тип поля")]),t._v(" "),n("th",[t._v("Название")]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{attrs:{to:{name:"x_fields.edit",params:{id:r.id}}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(r.extensible))]),t._v(" "),n("td",[t._v(t._s(r.type))]),t._v(" "),n("td",[t._v(t._s(r.title))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"x_fields.edit",params:{id:r.id}}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Идентификатор")]),t._v(" "),n("td",[t._v("Расширяемая таблица")]),t._v(" "),n("td",[t._v("Тип поля")]),t._v(" "),n("td",[t._v("Название")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports;function um(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0},isEditMode:function(){return this.$props.id>0},isArrayType:function(){return"array"===this.form.type}}),mounted:function(){var t=dm(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:this.form.params&&(this.form.params=um(this.form.params));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{addParam:function(t){this.form.params.push(this.param),this.resetParam()},delParam:function(t){this.form.params.splice(t,1)},resetParam:function(){this.param.key=null,this.param.value=null},onSubmit:function(){var t=dm(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=5;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:this.form});case 3:t.next=9;break;case 5:return t.next=7,this.$props.model.$create({data:this.form});case 7:n=t.sent,this.form=n;case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},beforeDestroy:function(){var t=dm(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.extensible},on:{input:function(e){e.target.composing||t.$set(t.form,"extensible",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"extensible",e.target.multiple?n:n[0])}}},t._l(t.extensibles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.type,expression:"form.type"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.type},on:{input:function(e){e.target.composing||t.$set(t.form,"type",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.type,expression:"form.type"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"type",e.target.multiple?n:n[0])}}},t._l(t.fieldTypes,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:t.isEditMode},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),t.isArrayType?n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("table",{staticClass:"table table-sm"},[t._m(5),t._v(" "),n("tbody",t._l(t.form.params,(function(e,r){return n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.key,expression:"param.key"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.key},on:{input:function(n){n.target.composing||t.$set(e,"key",n.target.value)}}})]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"param.value"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(n){n.target.composing||t.$set(e,"value",n.target.value)}}})]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-sm btn-outline-danger",attrs:{type:"button"},on:{click:function(e){return t.delParam(r)}}},[n("i",{staticClass:"fa fa-trash"})])])])})),0),t._v(" "),n("tfoot",[t._m(6),t._v(" "),n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.param.key,expression:"param.key"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.param.key},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addParam(e))},input:function(e){e.target.composing||t.$set(t.param,"key",e.target.value)}}})]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.param.value,expression:"param.value"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.param.value},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addParam(e))},input:function(e){e.target.composing||t.$set(t.param,"value",e.target.value)}}})]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-sm btn-outline-success",attrs:{type:"button"},on:{click:t.addParam}},[n("i",{staticClass:"fa fa-plus"})])])])])])])]):t._e(),t._v(" "),t.isArrayType?n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{staticClass:"form-control"},t._l(t.form.params,(function(e,r){return n("option",{domProps:{value:e.key}},[t._v(t._s(e.value))])})),0)])]):t._e()])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(8),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Название")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Краткое описание")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.descr,expression:"form.descr"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form.descr},on:{input:function(e){e.target.composing||t.$set(t.form,"descr",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.html_flags,expression:"form.html_flags"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form.html_flags},on:{input:function(e){e.target.composing||t.$set(t.form,"html_flags",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(10),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"x_fields"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры поля")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Расширяемая таблица"),e("small",{staticClass:"form-text text-muted"},[this._v("К этой таблице в БД будет добавлено поле.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Тип"),e("small",{staticClass:"form-text text-muted"},[this._v("Тип данных, хранимых в текущем поле.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Идентификатор"),e("small",{staticClass:"form-text text-muted"},[this._v("Заполняется по схеме "),e("code",[this._v("/^[a-z_]+$/")]),this._v(". В БД к полю будет добавлен префикс "),e("code",[this._v("x_")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Список пар "),e("small",{staticClass:"form-text text-muted"},[this._v("Список пар "),e("u",[this._v("ключ => значение")]),this._v(" для доп. поля типа "),e("b",[this._v("array")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Ключ")]),this._v(" "),e("th",[this._v("Значение")]),this._v(" "),e("th")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{attrs:{colspan:"3"}},[this._v("Добавить пару")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Предварительный просмотр\r\n "),e("small",{staticClass:"form-text text-muted"},[this._v("Так будет выглядеть дополнительное поле, т.е. в форме выпадающего списка.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"col-sm-7 control-label"},[t._v("Атрибуты "),n("small",{staticClass:"form-text text-muted"},[t._v("Например, "),n("code",[n("b",[t._v("required")])]),t._v(", "),n("code",[t._v("disabled")]),t._v(", "),n("code",[t._v("placeholder")]),t._v(", "),n("code",[t._v("onclick")]),t._v(", "),n("code",[t._v('autocomplete="off"')]),t._v(", "),n("code",[t._v("style")]),t._v(", "),n("code",[t._v("rows")]),t._v(" и т.д."),n("br"),t._v("Записываются в одну строку. Валидацию на правильность написания не проходят, передаются как есть.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,vm=[{path:"/x_fields",name:"x_fields",component:cm,meta:{title:"Дополнительные поля"},props:function(t){return{model:Kr}}},{path:"/x_fields/create",name:"x_fields.create",component:mm,meta:{title:"Создание дополнительного поля"},props:function(t){return{model:Kr,id:0}}},{path:"/x_fields/:id/edit",name:"x_fields.edit",component:mm,meta:{title:"Редактирование дополнительного поля"},props:function(t){return{model:Kr,id:parseInt(t.params.id,10)}}}];function ym(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e160?.5:0},hover:function(){this.opacity=1},click:function(){window.scrollTo(0,0)}}},Am=(n("ddh+"),n("4PWN"),qo(Em,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive?n("div",{staticClass:"scrolltop",style:{opacity:t.opacity},on:{click:function(e){return t.click()},mouseover:function(e){return t.hover()},mouseout:function(e){return t.handle()}}},[n("svg",{attrs:{id:"icon-arrow-up",viewBox:"0 0 24 24",width:"24",height:"24"}},[n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",fill:"#fff"}})])]):t._e()}),[],!1,null,"2c00c62a",null).exports),Sm={show:function(t){return t=t||{},new(f.a.extend(Am))({el:document.createElement("div"),propsData:Object.assign({active:!0,opacity:0},t)})}};Am.install=function(t,e){t.prototype.$scrolling=Sm};var jm=Am,Tm={beforeMount:function(){document.querySelector("body").appendChild(this.$el)},methods:{dismiss:function(t){this.$notification.dismiss(t)}}},Nm=(n("KNC7"),n("upAJ"),qo(Tm,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notification"},[n("transition-group",{attrs:{name:"fade-in-down",tag:"div"}},[t._l(t.items,(function(e,r){return[n("div",{key:r+0,staticClass:"notification_item",style:e.style},[n("button",{staticClass:"notification_item__close",attrs:{type:"button"},on:{click:function(e){return t.dismiss(r)}}},[t._v("×")]),t._v(" "),e.title?n("h5",{staticClass:"notification_item__heading"},[t._v(t._s(e.title))]):t._e(),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.message)}})])]}))],2)],1)}),[],!1,null,"00bd7a46",null).exports);let Pm;const Lm={info:"rgb(91, 192, 222)",success:"rgb(67, 172, 106)",warning:"rgb(233, 144, 2)",danger:"rgb(240, 65, 36)",error:"rgb(240, 65, 36)"};var Mm={show:function(t){if(t=t||{},void 0===Pm){let t=f.a.extend(Nm),e=document.createElement("div");Pm=new t({el:e,data:{items:[],item:{title:"",message:"",style:{}}}})}Pm.$data.items.push({title:t.title||!1,message:t.message||"Message is empty!",style:{backgroundColor:Lm[t.type||info]}}),setTimeout((function(){Pm.$data.items.shift()}),8e3)},info:function(t){this.show(Object.assign(t,{type:"info"}))},success:function(t){this.show(Object.assign(t,{type:"success"}))},warning:function(t){this.show(Object.assign(t,{type:"warning"}))},error:function(t){this.show(Object.assign(t,{type:"error"}))},dismiss:function(t){Pm.$data.items.splice(t,1)}};Nm.install=function(t,e){t.prototype.$notification=Mm};var $m=Nm;function qm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Im={name:"loading-layer",computed:function(t){for(var e=1;e"});window.Notification=Zm.$notification},rXFu:function(t,e,n){"use strict";(function(e,r){var i=n("lm0R");t.exports=b;var o,a=n("49sm");b.ReadableState=g;n("+qE3").EventEmitter;var s=function(t,e){return t.listeners(e).length},l=n("QpuX"),c=n("hwdV").Buffer,u=e.Uint8Array||function(){};var f=n("Onz0");f.inherits=n("P7XM");var d=n(1),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n("Xhqo"),v=n("RoFp");f.inherits(b,l);var y=["error","close","destroy","pause","resume"];function g(t,e){t=t||{};var r=e instanceof(o=o||n("sZro"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n("fXKp").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||n("sZro"),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function _(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):E(t,a)):w(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(O,t):O(t))}function O(t){p("emit readable"),t.emit("readable"),T(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return p("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):C(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return p("need readable",i),(0===e.length||e.length-t0?N(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,e);var l=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:b;function c(e,r){p("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),t.removeListener("close",y),t.removeListener("finish",g),t.removeListener("drain",f),t.removeListener("error",v),t.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){p("onend"),t.end()}o.endEmitted?i.nextTick(l):n.once("end",l),t.on("unpipe",c);var f=function(t){return function(){var e=t._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,T(t))}}(n);t.on("drain",f);var d=!1;var h=!1;function m(e){p("ondata"),h=!1,!1!==t.write(e)||h||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==M(o.pipes,t))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function v(e){p("onerror",e),b(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",g),b()}function g(){p("onfinish"),t.removeListener("close",y),b()}function b(){p("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",v),t.once("close",y),t.once("finish",g),t.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=e||n<0||y&&t-m>=f}function w(){var t=i();if(_(t))return x(t);p=setTimeout(w,function(t){var n=e-(t-h);return y?l(n,f-(t-m)):n}(t))}function x(t){return p=void 0,g&&c?b(t):(c=u=void 0,d)}function k(){var t=i(),n=_(t);if(c=arguments,u=this,h=t,n){if(void 0===p)return function(t){return m=t,p=setTimeout(w,e),v?b(t):d}(h);if(y)return clearTimeout(p),p=setTimeout(w,e),b(h)}return void 0===p&&(p=setTimeout(w,e)),d}return e=o(e)||0,r(n)&&(v=!!n.leading,f=(y="maxWait"in n)?s(o(n.maxWait)||0,e):f,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},k.flush=function(){return void 0===p?d:x(i())},k}},sZro:function(t,e,n){"use strict";var r=n("lm0R"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=n("Onz0");o.inherits=n("P7XM");var a=n("rXFu"),s=n("3BRs");o.inherits(f,a);for(var l=i(s.prototype),c=0;c=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(l.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 r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return B(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!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))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return S(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,r,i){if(!l.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===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function $(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function q(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,o){return o||q(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function I(t,e,n,r,o){return o||q(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.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},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.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},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),l.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},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.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},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("yLpj"))},uTOq:function(t,e,n){!function(t){"use strict";var e,n,r=t.Pos;function i(t,e){for(var n=function(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),r=n,i=0;ic);u++){var f=t.getLine(l++);a=null==a?f:a+"\n"+f}s*=2,e.lastIndex=n.ch;var d=e.exec(a);if(d){var p=a.slice(0,d.index).split("\n"),h=d[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:d}}}}function s(t,e){for(var n,r=0;;){e.lastIndex=r;var i=e.exec(t);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==t.length)return n}}function l(t,e,n){e=i(e,"g");for(var o=n.line,a=n.ch,l=t.firstLine();o>=l;o--,a=-1){var c=t.getLine(o);a>-1&&(c=c.slice(0,a));var u=s(c,e);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function c(t,e,n){e=i(e,"gm");for(var o,a=1,l=n.line,c=t.firstLine();l>=c;){for(var u=0;u>1,s=r(t.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(t,i,o,a){if(!i.length)return null;var s=a?e:n,l=s(i).split(/\r|\n\r?/);t:for(var c=o.line,f=o.ch,d=t.lastLine()+1-l.length;c<=d;c++,f=0){var p=t.getLine(c).slice(f),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue t;return o=u(p,h,m,s)+f,{from:r(c,u(p,h,m,s)+f),to:r(c,u(p,h,m+l[0].length,s)+f)}}var v=h.length-l[0].length;if(h.slice(v)==l[0]){for(var y=1;y=d;c--,f=-1){var p=t.getLine(c);f>-1&&(p=p.slice(0,f));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue t;return{from:r(c,u(p,h,m,s)),to:r(c,u(p,h,m+l[0].length,s))}}var v=l[l.length-1];if(h.slice(0,v.length)==v){var y=1;for(o=c-l.length+1;y0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n("VrN/"))},umAq:function(t,e,n){var r=n("UDow");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},umi4:function(t,e){},upAJ:function(t,e,n){"use strict";var r=n("Xwsg");n.n(r).a},uvSl:function(t,e,n){"use strict";var r=n("/N4U");n.n(r).a},"vn/o":function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},yQtW:function(t,e,n){(function(t,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("43KI"),l=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=e.IncomingMessage=function(e,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){t.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),o.writableStream){var u=new WritableStream({write:function(t){return new Promise((function(e,n){c._destroyed?n():c.push(new r(t))?e():c._resumeFetch=e}))},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void n.body.pipeTo(u).catch((function(t){i.clearTimeout(l),c._destroyed||c.emit("error",t)}))}catch(t){}}var f=n.body.getReader();!function t(){f.read().then((function(e){if(!c._destroyed){if(e.done)return i.clearTimeout(l),void c.push(null);c.push(new r(e.value)),t()}})).catch((function(t){i.clearTimeout(l),c._destroyed||c.emit("error",t)}))}()}else{if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{n=new i.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new r(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new r(o.length),s=0;st._pos&&(t.push(new r(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n("8oxB"),n("tjlA").Buffer,n("yLpj"))},zjyH:function(t,e,n){var r=n("42iF");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)}},[[0,0,3]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+dQi":function(t,e,n){!function(t){"use strict";t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(t,e,n){return r=t,i=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(s&&"@"==t.peek()&&t.match(p))return e.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=m),h("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&t.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&t.eat(">"))return h("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return t.eat("*")?(e.tokenize=v,v(t,e)):t.eat("/")?(t.skipToEnd(),h("comment","comment")):Gt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(t.eat("="),h("operator","operator",t.current()));if("`"==r)return e.tokenize=y,y(t,e);if("#"==r)return t.skipToEnd(),h("error","error");if("<"==r&&t.match("!--")||"-"==r&&t.match("->"))return t.skipToEnd(),h("comment","comment");if(d.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),h("operator","operator",t.current());if(u.test(r)){t.eatWhile(u);var i=t.current();if("."!=e.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return h(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function v(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return h("comment","comment")}function y(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",t.current())}var g="([{}])";function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),l=g.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(e.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}var k={state:null,column:null,marked:null,cc:null};function C(){for(var t=arguments.length-1;t>=0;t--)k.cc.push(arguments[t])}function O(){return C.apply(null,arguments),!0}function E(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function A(t){var e=k.state;if(k.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new j(r,n.vars,!0):null}return E(e,n.vars)?n:new j(n.prev,new T(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!E(t,e.localVars))return void(e.localVars=new T(t,e.localVars));n.globalVars&&!E(t,e.globalVars)&&(e.globalVars=new T(t,e.globalVars))}function S(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function j(t,e,n){this.prev=t,this.vars=e,this.block=n}function T(t,e){this.name=t,this.next=e}var N=new T("this",new T("arguments",null));function P(){k.state.context=new j(k.state.context,k.state.localVars,!1),k.state.localVars=N}function L(){k.state.context=new j(k.state.context,k.state.localVars,!0),k.state.localVars=null}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function $(t,e){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,k.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function q(){var t=k.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function R(t){return function e(n){return n==t?O():";"==t||"}"==n||")"==n||"]"==n?C():O(e)}}function I(t,e){return"var"==t?O($("vardef",e),bt,R(";"),q):"keyword a"==t?O($("form"),z,I,q):"keyword b"==t?O($("form"),I,q):"keyword d"==t?k.stream.match(/^\s*$/,!1)?O():O($("stat"),H,R(";"),q):"debugger"==t?O(R(";")):"{"==t?O($("}"),L,at,q,M):";"==t?O():"if"==t?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==q&&k.state.cc.pop()(),O($("form"),z,I,q,Ot)):"function"==t?O(jt):"for"==t?O($("form"),Et,I,q):"class"==t||c&&"interface"==e?(k.marked="keyword",O($("form","class"==t?t:e),Mt,q)):"variable"==t?c&&"declare"==e?(k.marked="keyword",O(I)):c&&("module"==e||"enum"==e||"type"==e)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==e?O(Wt):"type"==e?O(Nt,R("operator"),ft,R(";")):O($("form"),_t,R("{"),$("}"),at,q,q)):c&&"namespace"==e?(k.marked="keyword",O($("form"),D,I,q)):c&&"abstract"==e?(k.marked="keyword",O(I)):O($("stat"),Q):"switch"==t?O($("form"),z,R("{"),$("}","switch"),L,at,q,q,M):"case"==t?O(D,R(":")):"default"==t?O(R(":")):"catch"==t?O($("form"),P,F,I,q,M):"export"==t?O($("stat"),It,q):"import"==t?O($("stat"),Dt,q):"async"==t?O(I):"@"==e?O(D,I):C($("stat"),D,R(";"),q)}function F(t){if("("==t)return O(Pt,R(")"))}function D(t,e){return U(t,e,!1)}function B(t,e){return U(t,e,!0)}function z(t){return"("!=t?C():O($(")"),D,R(")"),q)}function U(t,e,n){if(k.state.fatArrowAt==k.stream.start){var r=n?Y:Z;if("("==t)return O(P,$(")"),it(Pt,")"),q,R("=>"),r,M);if("variable"==t)return C(P,_t,R("=>"),r,M)}var i=n?W:K;return _.hasOwnProperty(t)?O(i):"function"==t?O(jt,i):"class"==t||c&&"interface"==e?(k.marked="keyword",O($("form"),Lt,q)):"keyword c"==t||"async"==t?O(n?B:D):"("==t?O($(")"),H,R(")"),q,i):"operator"==t||"spread"==t?O(n?B:D):"["==t?O($("]"),Kt,q,i):"{"==t?ot(et,"}",null,i):"quasi"==t?C(V,i):"new"==t?O(function(t){return function(e){return"."==e?O(t?J:X):"variable"==e&&c?O(vt,t?W:K):C(t?B:D)}}(n)):"import"==t?O(D):O()}function H(t){return t.match(/[;\}\)\],]/)?C():C(D)}function K(t,e){return","==t?O(D):W(t,e,!1)}function W(t,e,n){var r=0==n?K:W,i=0==n?D:B;return"=>"==t?O(P,n?Y:Z,M):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?O(r):c&&"<"==e&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?O($(">"),it(ft,">"),q,r):"?"==e?O(D,R(":"),i):O(i):"quasi"==t?C(V,r):";"!=t?"("==t?ot(B,")","call",r):"."==t?O(tt,r):"["==t?O($("]"),H,R("]"),q,r):c&&"as"==e?(k.marked="keyword",O(ft,r)):"regexp"==t?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function V(t,e){return"quasi"!=t?C():"${"!=e.slice(e.length-2)?O(V):O(D,G)}function G(t){if("}"==t)return k.marked="string-2",k.state.tokenize=y,O(V)}function Z(t){return b(k.stream,k.state),C("{"==t?I:D)}function Y(t){return b(k.stream,k.state),C("{"==t?I:B)}function X(t,e){if("target"==e)return k.marked="keyword",O(K)}function J(t,e){if("target"==e)return k.marked="keyword",O(W)}function Q(t){return":"==t?O(q,I):C(K,R(";"),q)}function tt(t){if("variable"==t)return k.marked="property",O()}function et(t,e){return"async"==t?(k.marked="property",O(et)):"variable"==t||"keyword"==k.style?(k.marked="property","get"==e||"set"==e?O(nt):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(rt))):"number"==t||"string"==t?(k.marked=s?"property":k.style+" property",O(rt)):"jsonld-keyword"==t?O(rt):c&&S(e)?(k.marked="keyword",O(et)):"["==t?O(D,st,R("]"),rt):"spread"==t?O(B,rt):"*"==e?(k.marked="keyword",O(et)):":"==t?C(rt):void 0;var n}function nt(t){return"variable"!=t?C(rt):(k.marked="property",O(jt))}function rt(t){return":"==t?O(B):"("==t?C(jt):void 0}function it(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==e||r==e?C():C(t)}),r)}return i==e||o==e?O():n&&n.indexOf(";")>-1?C(t):O(R(e))}return function(n,i){return n==e||i==e?O():C(t,r)}}function ot(t,e,n){for(var r=3;r"),ft):void 0}function dt(t){if("=>"==t)return O(ft)}function pt(t,e){return"variable"==t||"keyword"==k.style?(k.marked="property",O(pt)):"?"==e||"number"==t||"string"==t?O(pt):":"==t?O(ft):"["==t?O(R("variable"),lt,R("]"),pt):"("==t?C(Tt,pt):void 0}function ht(t,e){return"variable"==t&&k.stream.match(/^\s*[?:]/,!1)||"?"==e?O(ht):":"==t?O(ft):"spread"==t?O(ht):C(ft)}function mt(t,e){return"<"==e?O($(">"),it(ft,">"),q,mt):"|"==e||"."==t||"&"==e?O(ft):"["==t?O(ft,R("]"),mt):"extends"==e||"implements"==e?(k.marked="keyword",O(ft)):"?"==e?O(ft,R(":"),ft):void 0}function vt(t,e){if("<"==e)return O($(">"),it(ft,">"),q,mt)}function yt(){return C(ft,gt)}function gt(t,e){if("="==e)return O(ft)}function bt(t,e){return"enum"==e?(k.marked="keyword",O(Wt)):C(_t,st,kt,Ct)}function _t(t,e){return c&&S(e)?(k.marked="keyword",O(_t)):"variable"==t?(A(e),O()):"spread"==t?O(_t):"["==t?ot(xt,"]"):"{"==t?ot(wt,"}"):void 0}function wt(t,e){return"variable"!=t||k.stream.match(/^\s*:/,!1)?("variable"==t&&(k.marked="property"),"spread"==t?O(_t):"}"==t?C():"["==t?O(D,R("]"),R(":"),wt):O(R(":"),_t,kt)):(A(e),O(kt))}function xt(){return C(_t,kt)}function kt(t,e){if("="==e)return O(B)}function Ct(t){if(","==t)return O(bt)}function Ot(t,e){if("keyword b"==t&&"else"==e)return O($("form","else"),I,q)}function Et(t,e){return"await"==e?O(Et):"("==t?O($(")"),At,q):void 0}function At(t){return"var"==t?O(bt,St):"variable"==t?O(St):C(St)}function St(t,e){return")"==t?O():";"==t?O(St):"in"==e||"of"==e?(k.marked="keyword",O(D,St)):C(D,St)}function jt(t,e){return"*"==e?(k.marked="keyword",O(jt)):"variable"==t?(A(e),O(jt)):"("==t?O(P,$(")"),it(Pt,")"),q,ct,I,M):c&&"<"==e?O($(">"),it(yt,">"),q,jt):void 0}function Tt(t,e){return"*"==e?(k.marked="keyword",O(Tt)):"variable"==t?(A(e),O(Tt)):"("==t?O(P,$(")"),it(Pt,")"),q,ct,M):c&&"<"==e?O($(">"),it(yt,">"),q,Tt):void 0}function Nt(t,e){return"keyword"==t||"variable"==t?(k.marked="type",O(Nt)):"<"==e?O($(">"),it(yt,">"),q):void 0}function Pt(t,e){return"@"==e&&O(D,Pt),"spread"==t?O(Pt):c&&S(e)?(k.marked="keyword",O(Pt)):c&&"this"==t?O(st,kt):C(_t,st,kt)}function Lt(t,e){return"variable"==t?Mt(t,e):$t(t,e)}function Mt(t,e){if("variable"==t)return A(e),O($t)}function $t(t,e){return"<"==e?O($(">"),it(yt,">"),q,$t):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(k.marked="keyword"),O(c?ft:D,$t)):"{"==t?O($("}"),qt,q):void 0}function qt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&S(e))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(qt)):"variable"==t||"keyword"==k.style?(k.marked="property",O(c?Rt:jt,qt)):"number"==t||"string"==t?O(c?Rt:jt,qt):"["==t?O(D,st,R("]"),c?Rt:jt,qt):"*"==e?(k.marked="keyword",O(qt)):c&&"("==t?C(Tt,qt):";"==t||","==t?O(qt):"}"==t?O():"@"==e?O(D,qt):void 0}function Rt(t,e){if("?"==e)return O(Rt);if(":"==t)return O(ft,kt);if("="==e)return O(B);var n=k.state.lexical.prev;return C(n&&"interface"==n.info?Tt:jt)}function It(t,e){return"*"==e?(k.marked="keyword",O(Ht,R(";"))):"default"==e?(k.marked="keyword",O(D,R(";"))):"{"==t?O(it(Ft,"}"),Ht,R(";")):C(I)}function Ft(t,e){return"as"==e?(k.marked="keyword",O(R("variable"))):"variable"==t?C(B,Ft):void 0}function Dt(t){return"string"==t?O():"("==t?C(D):C(Bt,zt,Ht)}function Bt(t,e){return"{"==t?ot(Bt,"}"):("variable"==t&&A(e),"*"==e&&(k.marked="keyword"),O(Ut))}function zt(t){if(","==t)return O(Bt,zt)}function Ut(t,e){if("as"==e)return k.marked="keyword",O(Bt)}function Ht(t,e){if("from"==e)return k.marked="keyword",O(D)}function Kt(t){return"]"==t?O():C(it(B,"]"))}function Wt(){return C($("form"),_t,R("{"),$("}"),it(Vt,"}"),q,q)}function Vt(){return C(_t,kt)}function Gt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return M.lex=!0,q.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new w((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new j(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=v&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(t,e,n,r,i){var o=t.cc;for(k.state=t,k.stream=i,k.marked=null,k.cc=o,k.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():l?D:I)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&x(t,r)?"variable-2":e}}(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==v)return t.Pass;if(e.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==q)l=l.prev;else if(u!=Ot)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==K||i==W)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return"vardef"==f?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Gt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=D&&e!=B||t.cc.pop()}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+qE3":function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var i,o,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return t}function f(){for(var t=[],e=0;e0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(void 0===l)return!1;if("function"==typeof l)o(l,this,e);else{var c=l.length,u=m(l,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"/9aa":function(t,e,n){var r=n("NykK"),i=n("ExA7"),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},"/N4U":function(t,e,n){var r=n("FboG");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"/pct":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.notification .notification_item a {\n color: inherit;\n text-decoration: underline;\n font-weight: inherit;\n}\n",""])},0:function(t,e,n){n("rLg/"),n("idvO"),n("3fDm"),t.exports=n("umi4")},"0XuU":function(t,e,n){t.exports=n("43KI").Transform},1:function(t,e){},"1IWx":function(t,e,n){t.exports=i;var r=n("+qE3").EventEmitter;function i(){r.call(this)}n("P7XM")(i,r),i.Readable=n("43KI"),i.Writable=n("LGOv"),i.Duplex=n("CWBI"),i.Transform=n("0XuU"),i.PassThrough=n("wq4j"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,t.end())}function l(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",c),t.on("error",c),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},"1eCo":function(t,e,n){!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function f(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=f;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=f,e.state=y,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=d;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=f;break}n.next()}return t}}function h(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function v(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(e))return;m(t)}}function y(t,e,n){return"openTag"==t?(n.tagStart=e.column(),g):"closeTag"==t?b:y}function g(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",x):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",x(t,0,n)):(a="error",g)}function b(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",w)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",_(t,0,n)):(a="error",w)}function _(t,e,n){return"endTag"!=t?(a="error",_):(m(n),y)}function w(t,e,n){return a="error",_(t,0,n)}function x(t,e,n){if("word"==t)return a="attribute",k;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new h(n,r,i==n.indented)),y}return a="error",x}function k(t,e,n){return"equals"==t?C:(l.allowMissing||(a="error"),x(t,0,n))}function C(t,e,n){return"string"==t?O:"word"==t&&l.allowUnquoted?(a="string",x):(a="error",x(t,0,n))}function O(t,e,n){return"string"==t?O:x(t,0,n)}return f.isInText=!0,{startState:function(t){var e={tokenize:f,state:y,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(a=null,e.state=e.state(o||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=x)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("VrN/"))},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"1p+/":function(t,e,n){!function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(t,e){var r=t.match(function(t){var e=n[t];return e||(n[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(t,e){return new RegExp((e?"^":"")+"","i")}function o(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}t.defineMode("htmlmixed",(function(n,a){var s=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag}),l={},c=a&&a.tags,u=a&&a.scriptTypes;if(o(e,l),c&&o(c,l),u)for(var f=u.length-1;f>=0;f--)l.script.unshift(["type",u[f].matches,u[f].mode]);function d(e,o){var a,c=s.token(e,o.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(e.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&u&&/>$/.test(e.current())){var f=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==e.current()&&function(t,e){for(var n=0;n-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}(t,v,e.localMode.token(t,e.localState))},o.localMode=h,o.localState=t.startState(h,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=e.current(),e.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(s,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,r){return!e.localMode||/^\s*<\//.test(n)?s.indent(e.htmlState,n,r):e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||s}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}(n("VrN/"),n("1eCo"),n("+dQi"),n("ewDg"))},2:function(t,e){},"2Tiy":function(t,e,n){var r=n("tjlA").Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i-1?r:o.nextTick;g.WritableState=y;var c=n("Onz0");c.inherits=n("P7XM");var u={deprecate:n("t9FE")},f=n("QpuX"),d=n("hwdV").Buffer,p=i.Uint8Array||function(){};var h,m=n("RoFp");function v(){}function y(t,e){s=s||n("sZro"),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(C,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),C(t,e))}(t,n,r,e,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?l(_,t,n,a,i):_(t,n,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(t){if(s=s||n("sZro"),!(h.call(g,this)||this instanceof s))return new g(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),C(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,u,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var n=x(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===g&&(t&&t._writableState instanceof y)}})):h=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,C(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n("8oxB"),n("URgk").setImmediate,n("yLpj"))},"3XYq":function(t,e,n){"use strict";var r=n("yVJZ");n.n(r).a},"3fDm":function(t,e){},"42iF":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\nlabel[data-v-15d4eb78] {\n cursor: pointer;\n margin-bottom: 0;\n}\n",""])},"43KI":function(t,e,n){(e=t.exports=n("rXFu")).Stream=e,e.Readable=e,e.Writable=n("3BRs"),e.Duplex=n("sZro"),e.Transform=n("J78i"),e.PassThrough=n("eA/Y")},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},"8E+E":function(t,e,n){var r=n("Gob7");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"8oxB":function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var t=s(d);u=!0;for(var e=c.length;e;){for(l=c,c=[];++f1)for(var n=1;n=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(s=u[c],!b(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function _(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function x(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&y(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&w(i,n)||s)&&y(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}d.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return m(v(t.actual),128)+" "+t.operator+" "+m(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=h(e),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(t,e,n){t!=e&&y(t,e,n,"==",d.equal)},d.notEqual=function(t,e,n){t==e&&y(t,e,n,"!=",d.notEqual)},d.deepEqual=function(t,e,n){b(t,e,!1)||y(t,e,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(t,e,n){b(t,e,!0)||y(t,e,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(t,e,n){b(t,e,!1)&&y(t,e,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&y(e,n,r,"notDeepStrictEqual",t)},d.strictEqual=function(t,e,n){t!==e&&y(t,e,n,"===",d.strictEqual)},d.notStrictEqual=function(t,e,n){t===e&&y(t,e,n,"!==",d.notStrictEqual)},d.throws=function(t,e,n){x(!0,t,e,n)},d.doesNotThrow=function(t,e,n){x(!1,t,e,n)},d.ifError=function(t){if(t)throw t},d.strict=r((function t(e,n){e||y(e,!0,n,"==",t)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var k=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n("yLpj"))},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},A8dI:function(t,e,n){var r=n("IaA+");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},AP2z:function(t,e,n){var r=n("nmnc"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},"B/RK":function(t,e,n){"use strict";var r=n("vn/o"),i=4,o=0,a=1,s=2;function l(t){for(var e=t.length;--e>=0;)t[e]=0}var c=0,u=1,f=2,d=29,p=256,h=p+1+d,m=30,v=19,y=2*h+1,g=15,b=16,_=7,w=256,x=16,k=17,C=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(h+2));l(j);var T=new Array(2*m);l(T);var N=new Array(512);l(N);var P=new Array(256);l(P);var L=new Array(d);l(L);var M,$,q,R=new Array(m);function I(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function D(t){return t<256?N[t]:N[256+(t>>>7)]}function B(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function z(t,e,n){t.bi_valid>b-n?(t.bi_buf|=e<>b-t.bi_valid,t.bi_valid+=n-b):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function K(t,e,n){var r,i,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(o[s]++,s))}}function W(t){var e;for(e=0;e8?B(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function G(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)Z(t,o,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,h=e.stat_desc.max_length,m=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;nh&&(o=h,m++),l[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,m-=2}while(m>0);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),K(o,c,t.bl_count)}function J(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),l=t.opt_len+3+7>>>3,(c=t.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==e?et(t,e,n,r):t.strategy===i||c===l?(z(t,(u<<1)+(r?1:0),3),Y(t,j,T)):(z(t,(f<<1)+(r?1:0),3),function(t,e,n,r){var i;for(z(t,e-257,5),z(t,n-1,5),z(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(P[n]+p+1)]++,t.dyn_dtree[2*D(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){z(t,u<<1,3),U(t,w,j),function(t){16===t.bi_valid?(B(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},B3Eq:function(t,e,n){var r=n("dla9");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},BBYT:function(t,e,n){"use strict";var r=n("VYsd");n.n(r).a},BEtg:function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},C2zF:function(t,e,n){!function(t){"use strict";function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(t){return t.state.search||(t.state.search=new e)}function r(t){return"string"==typeof t&&t==t.toLowerCase()}function i(t,e,n){return t.getSearchCursor(e,n,{caseFold:r(e),multiline:!0})}function o(t,e,n,r,i){t.openDialog?t.openDialog(e,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function s(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=a(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function l(t,e,n){e.queryText=n,e.query=s(n),t.removeOverlay(e.overlay,r(e.query)),e.overlay=function(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}(e.query,r(e.query)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,r(e.query)))}function c(e,r,i,a){var s=n(e);if(s.query)return u(e,r);var c=e.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&e.openDialog){var p=null,h=function(n,r){t.e_stop(r),n&&(n!=s.queryText&&(l(e,s,n),s.posFrom=s.posTo=e.getCursor()),p&&(p.style.opacity=1),u(e,r.shiftKey,(function(t,n){var r;n.line<3&&document.querySelector&&(r=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((p=r).style.opacity=.4)})))};!function(t,e,n,r,i){t.openDialog(e,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(t)},onKeyDown:i})}(e,d(e),c,h,(function(r,i){var o=t.keyName(r),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(r),l(e,n(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(r),h(i,r))})),a&&c&&(l(e,s,c),u(e,r))}else o(e,d(e),"Search for:",c,(function(t){t&&!s.query&&e.operation((function(){l(e,s,t),s.posFrom=s.posTo=e.getCursor(),u(e,r)}))}))}function u(e,r,o){e.operation((function(){var a=n(e),s=i(e,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(e,a.query,r?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0))).find(r))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(t){t.operation((function(){var e=n(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function d(t){return''+t.phrase("Search:")+' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function p(t,e,n){t.operation((function(){for(var r=i(t,e);r.findNext();)if("string"!=typeof e){var o=t.getRange(r.from(),r.to()).match(e);r.replace(n.replace(/\$(\d)/g,(function(t,e){return o[e]})))}else r.replace(n)}))}function h(t,e){if(!t.getOption("readOnly")){var r=t.getSelection()||n(t).lastQuery,l=''+(e?t.phrase("Replace all:"):t.phrase("Replace:"))+"";o(t,l+function(t){return' '+t.phrase("(Use /re/ syntax for regexp search)")+""}(t),l,r,(function(n){n&&(n=s(n),o(t,function(t){return''+t.phrase("With:")+' '}(t),t.phrase("Replace with:"),"",(function(r){if(r=a(r),e)p(t,n,r);else{f(t);var o=i(t,n,t.getCursor("from")),s=function(){var e,a=o.from();!(e=o.findNext())&&(o=i(t,n),!(e=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(t.setSelection(o.from(),o.to()),t.scrollIntoView({from:o.from(),to:o.to()}),function(t,e,n,r){t.openConfirm?t.openConfirm(e,r):confirm(n)&&r[0]()}(t,function(t){return''+t.phrase("Replace?")+" "}(t),t.phrase("Replace?"),[function(){l(e)},s,function(){p(t,n,r)}]))},l=function(t){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(e,n){return t[n]}))),s()};s()}})))}))}}t.commands.find=function(t){f(t),c(t)},t.commands.findPersistent=function(t){f(t),c(t,!1,!0)},t.commands.findPersistentNext=function(t){c(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){c(t,!0,!0,!0)},t.commands.findNext=c,t.commands.findPrev=function(t){c(t,!0)},t.commands.clearSearch=f,t.commands.replace=h,t.commands.replaceAll=function(t){h(t,!0)}}(n("VrN/"),n("uTOq"),n("Ku0u"))},C3Lh:function(t,e,n){"use strict";var r=n("U/kh");n.n(r).a},CWBI:function(t,e,n){t.exports=n("sZro")},CxY0:function(t,e,n){"use strict";var r=n("GYWy"),i=n("Nehr");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){i.isString(t)&&(t=b(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n("s4NR");function b(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?L+="x":L+=P[M];if(!L.match(p)){var q=T.slice(0,A),R=T.slice(A+1),I=P.match(h);I&&(q.push(I[1]),R.unshift(I[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+F,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(A=0,N=u.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=k.slice(-1)[0],E=(n.host||t.host||k.length>1)&&("."===O||".."===O)||""===O,A=0,S=k.length;S>=0;S--)"."===(O=k[S])?k.splice(S,1):".."===O?(k.splice(S,1),A++):A&&(k.splice(S,1),A--);if(!w&&!x)for(;A--;A)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var j,T=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=T?"":k.length?k.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(w=w||n.host&&k.length)&&!T&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},Cyu2:function(t,e,n){"use strict";var r=n("umAq");n.n(r).a},D7zT:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".table-responsive .table tfoot td,\n.table-responsive .table tfoot th {\n border-top: 2px solid #dee2e6;\n}",""])},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},FboG:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"select.form-control[multiple][data-v-eb1ad1ee] {\n height: 159px;\n}\noption[data-v-eb1ad1ee]:disabled {\n text-decoration: line-through;\n}",""])},GYWy:function(t,e,n){(function(t,r){var i;!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,f=26,d=38,p=700,h=72,m=128,v="-",y=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,x=Math.floor,k=String.fromCharCode;function C(t){throw new RangeError(_[t])}function O(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function E(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+O((t=t.replace(b,".")).split("."),e).join(".")}function A(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=k((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=k(t)})).join("")}function j(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function T(t,e,n){var r=0;for(t=n?x(t/p):t>>1,t+=x(t/e);t>w*f>>1;r+=c)t=x(t/w);return x(r+(w+1)*t/(t+d))}function N(t){var e,n,r,i,o,a,s,d,p,y,g,b=[],_=t.length,w=0,k=m,O=h;for((n=t.lastIndexOf(v))<0&&(n=0),r=0;r=128&&C("not-basic"),b.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=w,a=1,s=c;i>=_&&C("invalid-input"),((d=(g=t.charCodeAt(i++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||d>x((l-w)/a))&&C("overflow"),w+=d*a,!(d<(p=s<=O?u:s>=O+f?f:s-O));s+=c)a>x(l/(y=c-p))&&C("overflow"),a*=y;O=T(w-o,e=b.length+1,0==o),x(w/e)>l-k&&C("overflow"),k+=x(w/e),w%=e,b.splice(w++,0,k)}return S(b)}function P(t){var e,n,r,i,o,a,s,d,p,y,g,b,_,w,O,E=[];for(b=(t=A(t)).length,e=m,n=0,o=h,a=0;a=e&&gx((l-n)/(_=r+1))&&C("overflow"),n+=(s-e)*_,e=s,a=0;al&&C("overflow"),g==e){for(d=n,p=c;!(d<(y=p<=o?u:p>=o+f?f:p-o));p+=c)O=d-y,w=c-y,E.push(k(j(y+O%w,0))),d=x(O/w);E.push(k(j(d,0))),o=T(n,_,r==i),n=0,++r}++n,++e}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:S},decode:N,encode:P,toASCII:function(t){return E(t,(function(t){return g.test(t)?"xn--"+P(t):t}))},toUnicode:function(t){return E(t,(function(t){return y.test(t)?N(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n("YuTi")(t),n("yLpj"))},Gob7:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*.form-control {\n border: none;\n}\n.ql-editor {\n border: none!important;\n}\nbody {\n background: none;\n}*/\n",""])},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},Hc2a:function(t,e,n){try{n("w3dh")}catch(t){console.error(t.message)}},HmDM:function(t,e,n){"use strict";var r=n("zjyH");n.n(r).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var x=/-(\w)/g,k=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,E=w((function(t){return t.replace(O,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function j(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,J=Z&&Z.indexOf("edge/")>0,Q=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===G),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===U&&(U=!W&&!V&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),U},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,lt="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=N,ut=0,ft=function(){this.id=ut++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(t)){var l=Bt(String,i.type);(l<0||s0&&(ue((l=t(l,(n||"")+"_"+r))[0])&&ue(u)&&(f[c]=gt(u.text+l[0].text),l.shift()),f.push.apply(f,l)):s(l)?ue(u)?f[c]=gt(u.text+l):""!==l&&f.push(gt(l)):ue(l)&&ue(u)?f[c]=gt(u.text+l.text):(a(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),f.push(l)));return f}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=me(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=ve(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function me(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ce(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function ye(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(un=function(){return fn.now()})}function dn(){var t,e;for(cn=un(),sn=!0,nn.sort((function(t,e){return t.id-e.id})),ln=0;lnln&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(dn))}}(this)},hn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){zt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:N,set:N};function vn(t,e,n){mn.get=function(){return this[e][n]},mn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,mn)}var yn={lazy:!0};function gn(t,e,n){var r=!it();"function"==typeof n?(mn.get=r?bn(e):_n(n),mn.set=N):(mn.get=n.get?r&&!1!==n.cache?bn(e):_n(n.get):N,mn.set=n.set||N),Object.defineProperty(t,e,mn)}function bn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function _n(t){return function(){return t.call(this,this)}}function wn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var xn=0;function kn(t){var e=t.options;if(t.super){var n=kn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&j(t.extendOptions,r),(e=t.options=qt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Cn(t){this._init(t)}function On(t){return t&&(t.Ctor.options.name||t.tag)}function En(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===c.call(n)&&t.test(e));var n}function An(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=On(a.componentOptions);s&&!e(s)&&Sn(n,o,r,i)}}}function Sn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=qt(kn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;At(t,"$attrs",o&&o.attrs||r,null,!0),At(t,"$listeners",e._parentListeners||r,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),Ct(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){i.push(o);var a=It(o,e,n,t);At(r,o,a),o in t||vn(t,"_props",o)};for(var a in e)o(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?N:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return zt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];i&&_(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&vn(t,"_data",a))}Et(e,!0)}(t):Et(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new hn(t,a||N,N,yn)),i in t||gn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?S(e):e;for(var n=S(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return D}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:j,mergeOptions:qt,defineReactive:At},t.set=St,t.delete=jt,t.nextTick=ee,t.observable=function(t){return Et(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,j(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=qt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=qt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)vn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)gn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,I.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=j({},a.options),i[r]=a,a}}(t),function(t){I.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:it}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Pe}),Cn.version="2.6.10";var Nn=m("style,class"),Pn=m("input,textarea,option,select,progress"),Ln=function(t,e,n){return"value"===n&&Pn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Mn=m("contenteditable,draggable,spellcheck"),$n=m("events,caret,typing,plaintext-only"),qn=function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&$n(e)?e:"true"},Rn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Dn=function(t){return Fn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function zn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Hn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?mr(t,e,n):Rn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Mn(e)?t.setAttribute(e,qn(e,n)):Fn(e)?Bn(n)?t.removeAttributeNS(In,Dn(e)):t.setAttributeNS(In,e,n):mr(t,e,n)}function mr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(Y&&!X&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var vr={create:pr,update:pr};function yr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=zn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=zn(e,n.data));return function(t,e){return o(t)||o(e)?Un(t,Hn(e)):""}(e.staticClass,e.class)}(e),l=n._transitionClasses;o(l)&&(s=Un(s,Hn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,br,_r,wr,xr,kr,Cr={create:yr,update:yr},Or=/[\w).+\-_$\]]/;function Er(t){var e,n,r,i,o,a=!1,s=!1,l=!1,c=!1,u=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(m=t.charAt(h));h--);m&&Or.test(m)||(c=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&v(),o)for(r=0;r-1?{exp:t.slice(0,wr),key:'"'+t.slice(wr+1)+'"'}:{exp:t,key:null};for(br=t,wr=xr=kr=0;!Ur();)Hr(_r=zr())?Wr(_r):91===_r&&Kr(_r);return{exp:t.slice(0,xr),key:t.slice(xr+1,kr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function zr(){return br.charCodeAt(++wr)}function Ur(){return wr>=gr}function Hr(t){return 34===t||39===t}function Kr(t){var e=1;for(xr=wr;!Ur();)if(Hr(t=zr()))Wr(t);else if(91===t&&e++,93===t&&e--,0===e){kr=wr;break}}function Wr(t){for(var e=t;!Ur()&&(t=zr())!==e;);}var Vr,Gr="__r",Zr="__c";function Yr(t,e,n){var r=Vr;return function i(){null!==e.apply(null,arguments)&&Qr(t,i,n,r)}}var Xr=Vt&&!(tt&&Number(tt[1])<=53);function Jr(t,e,n,r){if(Xr){var i=cn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Vr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Qr(t,e,n,r){(r||Vr).removeEventListener(t,e._wrapper||e,n)}function ti(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Vr=e.elm,function(t){if(o(t[Gr])){var e=Y?"change":"input";t[e]=[].concat(t[Gr],t[e]||[]),delete t[Gr]}o(t[Zr])&&(t.change=[].concat(t[Zr],t.change||[]),delete t[Zr])}(n),ae(n,r,Jr,Qr,Yr,e.context),Vr=void 0}}var ei,ni={create:ti,update:ti};function ri(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=j({},l)),s)n in l||(a[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var c=i(r)?"":String(r);ii(a,c)&&(a.value=c)}else if("innerHTML"===n&&Vn(a.tagName)&&i(a.innerHTML)){(ei=ei||document.createElement("div")).innerHTML=""+r+"";for(var u=ei.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var oi={create:ri,update:ri},ai=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function si(t){var e=li(t.style);return t.staticStyle?j(t.staticStyle,e):e}function li(t){return Array.isArray(t)?T(t):"string"==typeof t?ai(t):t}var ci,ui=/^--/,fi=/\s*!important$/,di=function(t,e,n){if(ui.test(e))t.style.setProperty(e,n);else if(fi.test(n))t.style.setProperty(E(e),n.replace(fi,""),"important");else{var r=hi(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(yi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function bi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(yi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function _i(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&j(e,wi(t.name||"v")),j(e,t),e}return"string"==typeof t?wi(t):void 0}}var wi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),xi=W&&!X,ki="transition",Ci="animation",Oi="transition",Ei="transitionend",Ai="animation",Si="animationend";xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oi="WebkitTransition",Ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ai="WebkitAnimation",Si="webkitAnimationEnd"));var ji=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ti(t){ji((function(){ji(t)}))}function Ni(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),gi(t,e))}function Pi(t,e){t._transitionClasses&&g(t._transitionClasses,e),bi(t,e)}function Li(t,e,n){var r=$i(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ki?Ei:Si,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=ki,u=a,f=o.length):e===Ci?c>0&&(n=Ci,u=c,f=l.length):f=(n=(u=Math.max(a,c))>0?a>c?ki:Ci:null)?n===ki?o.length:l.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===ki&&Mi.test(r[Oi+"Property"])}}function qi(t,e){for(;t.length1}function zi(t,e){!0!==e.data.show&&Ii(e)}var Ui=function(t){var e,n,r={},l=t.modules,c=t.nodeOps;for(e=0;eh?b(t,i(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&w(0,e,d,h)}(d,m,y,n,u):o(y)?(o(t.text)&&c.setTextContent(d,""),b(d,null,y,0,y.length-1,n)):o(m)?w(0,m,0,m.length-1):o(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}}}function O(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(M(Gi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Vi(t,e){return e.every((function(e){return!M(e,t)}))}function Gi(t){return"_value"in t?t._value:t.value}function Zi(t){t.target.composing=!0}function Yi(t){t.target.composing&&(t.target.composing=!1,Xi(t.target,"input"))}function Xi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ji(t){return!t.componentInstance||t.data&&t.data.transition?t:Ji(t.componentInstance._vnode)}var Qi={model:Hi,show:{bind:function(t,e,n){var r=e.value,i=(n=Ji(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ii(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Ji(n)).data&&n.data.transition?(n.data.show=!0,r?Ii(n,(function(){t.style.display=t.__vOriginalDisplay})):Fi(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},to={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function eo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?eo(We(e.children)):t}function no(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[k(o)]=i[o];return e}function ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var io=function(t){return t.tag||Ke(t)},oo=function(t){return"show"===t.name},ao={name:"transition",props:to,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=eo(i);if(!o)return i;if(this._leaving)return ro(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=no(this),c=this._vnode,u=eo(c);if(o.data.directives&&o.data.directives.some(oo)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!Ke(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=j({},l);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ro(t,i);if("in-out"===r){if(Ke(o))return c;var d,p=function(){d()};se(l,"afterEnter",p),se(l,"enterCancelled",p),se(f,"delayLeave",(function(t){d=t}))}}return i}}},so=j({tag:String,moveClass:String},to);function lo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function co(t){t.data.newPos=t.elm.getBoundingClientRect()}function uo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Yn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Yn[t]=/HTMLUnknownElement/.test(e.toString())},j(Cn.options.directives,Qi),j(Cn.options.components,fo),Cn.prototype.__patch__=W?Ui:N,Cn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),en(t,"beforeMount"),r=function(){t._update(t._render(),n)},new hn(t,r,N,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&W?Jn(t):void 0,e)},W&&setTimeout((function(){D.devtools&&ot&&ot.emit("init",Cn)}),0);var po,ho=/\{\{((?:.|\r?\n)+?)\}\}/g,mo=/[-.*+?^${}()|[\]\/\\]/g,vo=w((function(t){var e=t[0].replace(mo,"\\$&"),n=t[1].replace(mo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),yo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Rr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=qr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},go={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Rr(t,"style");n&&(t.staticStyle=JSON.stringify(ai(n)));var r=qr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},bo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_o=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),xo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+B.source+"]*",Oo="((?:"+Co+"\\:)?"+Co+")",Eo=new RegExp("^<"+Oo),Ao=/^\s*(\/?)>/,So=new RegExp("^<\\/"+Oo+"[^>]*>"),jo=/^]+>/i,To=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},$o=/&(?:lt|gt|quot|amp|#39);/g,qo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ro=m("pre,textarea",!0),Io=function(t,e){return t&&Ro(t)&&"\n"===e[0]};function Fo(t,e){var n=e?qo:$o;return t.replace(n,(function(t){return Mo[t]}))}var Do,Bo,zo,Uo,Ho,Ko,Wo,Vo,Go=/^@|^v-on:/,Zo=/^v-|^@|^:/,Yo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Xo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jo=/^\(|\)$/g,Qo=/^\[.*\]$/,ta=/:(.*)$/,ea=/^:|^\.|^v-bind:/,na=/\.[^.\]]+(?=[^\]]*$)/g,ra=/^v-slot(:|$)|^#/,ia=/[\r\n]/,oa=/\s+/g,aa=w((function(t){return(po=po||document.createElement("div")).innerHTML=t,po.textContent})),sa="_empty_";function la(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ha(e),rawAttrsMap:{},parent:n,children:[]}}function ca(t,e){var n,r;(r=qr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=qr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Rr(t,"scope"),t.slotScope=e||Rr(t,"slot-scope")):(e=Rr(t,"slot-scope"))&&(t.slotScope=e);var n=qr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Nr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Ir(t,ra);if(r){var i=da(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||sa}}else{var s=Ir(t,ra);if(s){var l=t.scopedSlots||(t.scopedSlots={}),c=da(s),u=c.name,f=c.dynamic,d=l[u]=la("template",[],t);d.slotTarget=u,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||sa,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=qr(t,"name"))}(t),function(t){var e;(e=qr(t,"is"))&&(t.component=e),null!=Rr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),$r(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=qr(t,"value")||"null";Tr(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),$r(t,"change",Br(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?Gr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Br(e,u);l&&(f="if($event.target.composing)return;"+f),Tr(t,"value","("+e+")"),$r(t,c,f,null,!0),(s||a)&&$r(t,"blur","$forceUpdate()")}(t,r,i);else if(!D.isReservedTag(o))return Dr(t,r,i),!1;return!0},text:function(t,e){e.value&&Tr(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Tr(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:bo,mustUseProp:Ln,canBeLeftOpenTag:_o,isReservedTag:Gn,getTagNamespace:Zn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(_a)},xa=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var ka=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/,Ca=/\([^)]*?\);*$/,Oa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Aa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(t){return"if("+t+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ta(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=Na(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Na(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Na(t)})).join(",")+"]";var e=Oa.test(t.value),n=ka.test(t.value),r=Oa.test(t.value.replace(Ca,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(ja[s])o+=ja[s],Ea[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Pa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function Pa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Ea[t],r=Aa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var La={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:N},Ma=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=jr(t.modules,"transformCode"),this.dataGenFns=jr(t.modules,"genData"),this.directives=j(j({},La),t.directives);var e=t.isReservedTag||P;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function $a(t,e){var n=new Ma(e);return{render:"with(this){return "+(t?qa(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function qa(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ra(t,e);if(t.once&&!t.onceProcessed)return Ia(t,e);if(t.for&&!t.forProcessed)return Da(t,e);if(t.if&&!t.ifProcessed)return Fa(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Ha(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?Va((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:k(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Ha(e,n,!0);return"_c("+t+","+Ba(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ba(t,e));var i=t.inlineTemplate?null:Ha(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=$a(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+Va(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function za(t){return 1===t.type&&("slot"===t.tag||t.children.some(za))}function Ua(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fa(t,e,Ua,"null");if(t.for&&!t.forProcessed)return Da(t,e,Ua);var r=t.slotScope===sa?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Ha(t,e)||"undefined")+":undefined":Ha(t,e)||"undefined":qa(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ha(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||qa)(a,e)+s}var l=n?function(t,e){for(var n=0,r=0;r]*>)","i")),d=t.replace(f,(function(t,n,r){return c=r.length,Po(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Io(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-d.length,t=d,E(u,l-c,l)}else{var p=t.indexOf("<");if(0===p){if(To.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),l,l+h+3),k(h+3);continue}}if(No.test(t)){var m=t.indexOf("]>");if(m>=0){k(m+2);continue}}var v=t.match(jo);if(v){k(v[0].length);continue}var y=t.match(So);if(y){var g=l;k(y[0].length),E(y[1],g,l);continue}var b=C();if(b){O(b),Io(b.tagName,t)&&k(1);continue}}var _=void 0,w=void 0,x=void 0;if(p>=0){for(w=t.slice(p);!(So.test(w)||Eo.test(w)||To.test(w)||No.test(w)||(x=w.indexOf("<",1))<0);)p+=x,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&k(_.length),e.chars&&_&&e.chars(_,l-_.length,l)}if(t===n){e.chars&&e.chars(t);break}}function k(e){l+=e,t=t.substring(e)}function C(){var e=t.match(Eo);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(k(e[0].length);!(n=t.match(Ao))&&(r=t.match(ko)||t.match(xo));)r.start=l,k(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],k(n[0].length),i.end=l,i}}function O(t){var n=t.tagName,l=t.unarySlash;o&&("p"===r&&wo(n)&&E(r),s(n)&&r===n&&E(n));for(var c=a(n)||!!l,u=t.attrs.length,f=new Array(u),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)e.end&&e.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}E()}(t,{warn:Do,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,u,f){var d=r&&r.ns||Vo(t);Y&&"svg"===d&&(o=function(t){for(var e=[],n=0;nl&&(s.push(o=t.slice(l,i)),a.push(JSON.stringify(o)));var c=Er(r[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l':'
',Ja.innerHTML.indexOf(" ")>0}var ns=!!W&&es(!1),rs=!!W&&es(!0),is=w((function(t){var e=Jn(t);return e&&e.innerHTML})),os=Cn.prototype.$mount;Cn.prototype.$mount=function(t,e){if((t=t&&Jn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=ts(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,t,e)},Cn.compile=ts,t.exports=Cn}).call(this,n("yLpj"),n("URgk").setImmediate)},"IaA+":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,'/**\n * Nestable\n */\n.dd {\n position: relative;\n display: block;\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: 13px;\n line-height: 20px;\n}\n.dd-list {\n display: block;\n position: relative;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.dd-list .dd-list {\n padding-left: 30px;\n}\n.dd-collapsed .dd-list {\n display: none;\n}\n.dd-empty,\n.dd-item,\n.dd-placeholder {\n display: block;\n position: relative;\n margin: 0;\n padding: 0;\n}\n.dd-handle {\n display: block;\n height: 32px;\n margin: 5px 0;\n padding: 5px 10px;\n color: #333;\n text-decoration: none;\n font-weight: bold;\n border: 1px solid #ccc;\n background: #fafafa;\n box-sizing: border-box;\n line-height: 22px;\n}\n.dd-item > button {\n display: block;\n position: relative;\n cursor: pointer;\n float: left;\n width: 25px;\n height: 20px;\n margin: 6px 0;\n padding: 0;\n text-indent: 100%;\n white-space: nowrap;\n overflow: hidden;\n border: 0;\n background: transparent;\n font-size: 18px;\n line-height: 1;\n text-align: center;\n font-weight: bold;\n}\n.dd-item > button:before {\n content: "+";\n display: block;\n position: absolute;\n width: 100%;\n text-align: center;\n text-indent: 0;\n}\n.dd-item > button[data-action=collapse]:before {\n content: "-";\n}\n.dd-empty,\n.dd-placeholder {\n margin: 5px 0;\n padding: 0;\n min-height: 30px;\n background: #f2fbff;\n border: 1px dashed #b6bcbf;\n box-sizing: border-box;\n}\n.dd-empty {\n border: 1px dashed #bbb;\n min-height: 100px;\n background-color: #e5e5e5;\n background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);\n background-size: 60px 60px;\n background-position: 0 0, 30px 30px;\n}\n.dd-dragel {\n position: absolute;\n pointer-events: none;\n z-index: 9999;\n}\n.dd-dragel > .dd-item .dd-handle {\n margin-top: 0;\n}\n.dd-dragel .dd-handle {\n box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, 0.1);\n}\n\n/**\n * Nestable Extras\n */\n.nestable-lists {\n display: block;\n clear: both;\n padding: 30px 0;\n width: 100%;\n border: 0;\n border-top: 2px solid #ddd;\n border-bottom: 2px solid #ddd;\n}\n#nestable-menu {\n padding: 0;\n margin: 20px 0;\n}\n.nestable-dark-theme .dd-handle {\n color: #fff;\n border: 1px solid #999;\n background: #bbb;\n}\n.nestable-dark-theme .dd-item > button:before {\n color: #fff;\n}\n@media only screen and (min-width: 700px) {\n.dd {\n /*float: left;*/\n width: 100%;\n}\n.dd + .dd {\n margin-left: 2%;\n}\n}\n.dd-hover > .dd-handle {\n background: #2ea8e5 !important;\n}\n\n/**\n * Nestable Draggable Handles\n */\n.dd3-content {\n display: block;\n margin: 7px 0;\n padding: 5px 10px 5px 40px;\n color: #333;\n text-decoration: none;\n border: 1px solid #ccc;\n background: #f0f0f0;\n box-sizing: border-box;\n cursor: default;\n}\n.dd-dragel > .dd3-item > .dd3-content {\n margin: 0;\n}\n.dd3-item > button {\n margin-left: 36px;\n}\n.dd3-handle {\n position: absolute;\n margin: 0;\n left: 0;\n top: 0;\n cursor: move !important;\n width: 36px;\n white-space: nowrap;\n}\n.dd3-content .btn {\n padding-top: 0;\n padding-bottom: 0;\n}',""])},J78i:function(t,e,n){"use strict";t.exports=a;var r=n("sZro"),i=n("Onz0");function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length\n \n'},KK1u:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".image__uploader[data-v-abb1b27c] {\n display: block;\n margin-bottom: 1.25rem;\n min-height: 40px;\n}\n.image__uploader__input[data-v-abb1b27c] {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n}\n.image__uploader__states[data-v-abb1b27c] {\n cursor: pointer;\n color: #e1e1e1;\n min-height: 159px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 2px dashed;\n}",""])},KKCa:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},KO5m:function(t,e,n){"use strict";var r=n("JDFr");n.n(r).a},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},Ku0u:function(t,e,n){!function(t){function e(e,n,r){var i,o=e.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),t.addClass(o,"dialog-opened"),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=e(this,r,o.bottom),s=!1,l=this;function c(e){if("string"==typeof e)f.value=e;else{if(s)return;s=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&t.on(f,"input",(function(t){o.onInput(t,f.value,c)})),o.onKeyUp&&t.on(f,"keyup",(function(t){o.onKeyUp(t,f.value,c)})),t.on(f,"keydown",(function(e){o&&o.onKeyDown&&o.onKeyDown(e,f.value,c)||((27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(f.blur(),t.e_stop(e),c()),13==e.keyCode&&i(f.value,e))})),!1!==o.closeOnBlur&&t.on(f,"blur",c)):(u=a.getElementsByTagName("button")[0])&&(t.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&t.on(u,"blur",c),u.focus()),c})),t.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=e(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var d=0;d-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;h(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function h(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=m(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e,i){var o,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,u)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,u)})),r.forEachChild((function(r,o){h(t,e,n.concat(o),r,i)}))}function m(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function v(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){0},c.prototype.commit=function(t,e,n){var r=this,i=v(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},c.prototype.dispatch=function(t,e){var n=this,r=v(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}return t}))}},c.prototype.subscribe=function(t){return f(t,this._subscribers)},c.prototype.subscribeAction=function(t){return f("function"==typeof t?{before:t}:t,this._actionSubscribers)},c.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),h(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),d(this)},c.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,u);var g=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),b=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),_=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=k((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function x(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var O={Store:c,install:y,version:"3.1.1",mapState:g,mapMutations:b,mapGetters:_,mapActions:w,createNamespacedHelpers:function(t){return{mapState:g.bind(null,t),mapGetters:_.bind(null,t),mapMutations:b.bind(null,t),mapActions:w.bind(null,t)}}};e.a=O}).call(this,n("yLpj"))},LGOv:function(t,e,n){t.exports=n("3BRs")},LOvY:function(t,e,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},MCLT:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,t,r.depth)}function l(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&k(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=u(t,i,r)),i}var o=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(v(e))return t.stylize(""+e,"number");if(h(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var c,_="",C=!1,O=["{","}"];(p(n)&&(C=!0,O=["[","]"]),k(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),x(n)&&(_=" "+f(n)),0!==a.length||C&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=C?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,_,O)):O[0]+_+O[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),S(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=m(n)?u(t,l.value,null):u(t,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function g(t){return void 0===t}function b(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===C(t)}function x(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function k(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(g(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=h,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=g,e.isRegExp=b,e.isObject=_,e.isDate=w,e.isError=x,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o\w/,!1)&&(e.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!t.eol()&&(o||!1===i||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&t.match(r)){e.tokenize=null,e.tokStack.pop(),e.tokStack.pop();break}o="\\"==t.next()&&!o}return"string"}(r,i,t,e)}}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";t.registerHelper("hintWords","php",[i,o,a].join(" ").split(" ")),t.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:e(i),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(o),builtin:e(a),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,e){var n;if(n=t.match(/<<\s*/)){var i=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var o=t.current().slice(n[0].length+(i?2:1));if(i&&t.eat(i),o)return(e.tokStack||(e.tokStack=[])).push(o,0),e.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,e){return(e.tokStack||(e.tokStack=[])).push('"',0),e.tokenize=r('"'),"string"},"{":function(t,e){return e.tokStack&&e.tokStack.length&&e.tokStack[e.tokStack.length-1]++,!1},"}":function(t,e){return e.tokStack&&e.tokStack.length>0&&!--e.tokStack[e.tokStack.length-1]&&(e.tokenize=r(e.tokStack[e.tokStack.length-2])),!1}}};t.defineMode("php",(function(e,n){var r=t.getMode(e,n&&n.htmlMode||"text/html"),i=t.getMode(e,s);return{startState:function(){var e=t.startState(r),o=n.startOpen?t.startState(i):null;return{html:e,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:e,pending:null}},copyState:function(e){var n,o=e.html,a=t.copyState(r,o),s=e.php,l=s&&t.copyState(i,s);return n=e.curMode==r?a:l,{html:a,php:l,curMode:e.curMode,curState:n,pending:e.pending}},token:function(e,n){var o=n.curMode==i;if(e.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&e.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(e,n.curState);if(e.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=t.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!e.eol()&&e.next()!=n.pending;);var a="string"}else n.pending&&e.pos/.test(l)?n.pending=s[0]:n.pending={end:e.pos,style:a},e.backUp(l.length-c)),a},indent:function(t,e,n){return t.curMode!=i&&/^\s*<\//.test(e)||t.curMode==i&&/^\?>/.test(e)?r.indent(t.html,e,n):t.curMode.indent(t.curState,e,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(t){return{state:t.curState,mode:t.curMode}}}}),"htmlmixed","clike"),t.defineMIME("application/x-httpd-php","php"),t.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),t.defineMIME("text/x-php",s)}(n("VrN/"),n("1p+/"),n("S6bl"))},RoFp:function(t,e,n){"use strict";var r=n("lm0R");function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},Rwuk:function(t,e,n){"use strict";(function(t){var r=n("tjlA").Buffer,i=n("1IWx").Transform,o=n("a3Xj"),a=n("MCLT"),s=n("9lTW").ok,l=n("tjlA").kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(o),f=0;f=l?a=new RangeError(c):e=r.concat(i,o),i=[],t.close(),n(a,e)}t.on("error",(function(e){t.removeListener("end",s),t.removeListener("readable",a),n(e)})),t.on("end",s),t.end(e),a()}function g(t,e){if("string"==typeof e&&(e=r.from(e)),!r.isBuffer(e))throw new TypeError("Not a string or buffer");var n=t._finishFlushFlag;return t._processChunk(e,n)}function b(t){if(!(this instanceof b))return new b(t);A.call(this,t,o.DEFLATE)}function _(t){if(!(this instanceof _))return new _(t);A.call(this,t,o.INFLATE)}function w(t){if(!(this instanceof w))return new w(t);A.call(this,t,o.GZIP)}function x(t){if(!(this instanceof x))return new x(t);A.call(this,t,o.GUNZIP)}function k(t){if(!(this instanceof k))return new k(t);A.call(this,t,o.DEFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);A.call(this,t,o.INFLATERAW)}function O(t){if(!(this instanceof O))return new O(t);A.call(this,t,o.UNZIP)}function E(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function A(t,n){var a=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&!E(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!E(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSizee.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitse.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levele.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevele.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(t,n){S(s),s._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],s.emit("error",r)};var l=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(l=t.level);var c=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(c=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,l,t.memLevel||e.Z_DEFAULT_MEMLEVEL,c,t.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function S(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function j(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=b,e.Inflate=_,e.Gzip=w,e.Gunzip=x,e.DeflateRaw=k,e.InflateRaw=C,e.Unzip=O,e.createDeflate=function(t){return new b(t)},e.createInflate=function(t){return new _(t)},e.createDeflateRaw=function(t){return new k(t)},e.createInflateRaw=function(t){return new C(t)},e.createGzip=function(t){return new w(t)},e.createGunzip=function(t){return new x(t)},e.createUnzip=function(t){return new O(t)},e.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new b(e),t,n)},e.deflateSync=function(t,e){return g(new b(e),t)},e.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new w(e),t,n)},e.gzipSync=function(t,e){return g(new w(e),t)},e.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new k(e),t,n)},e.deflateRawSync=function(t,e){return g(new k(e),t)},e.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new O(e),t,n)},e.unzipSync=function(t,e){return g(new O(e),t)},e.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new _(e),t,n)},e.inflateSync=function(t,e){return g(new _(e),t)},e.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new x(e),t,n)},e.gunzipSync=function(t,e){return g(new x(e),t)},e.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),y(new C(e),t,n)},e.inflateRawSync=function(t,e){return g(new C(e),t)},a.inherits(A,i),A.prototype.params=function(n,r,i){if(ne.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else t.nextTick(i)},A.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},A.prototype._flush=function(t){this._transform(r.alloc(0),"",t)},A.prototype.flush=function(e,n){var i=this,a=this._writableState;("function"==typeof e||void 0===e&&!n)&&(n=e,e=o.Z_FULL_FLUSH),a.ended?n&&t.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(e,n)})):(this._flushFlag=e,this.write(r.alloc(0),"",n))},A.prototype.close=function(e){S(this,e),t.nextTick(j,this)},A.prototype._transform=function(t,e,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||r.isBuffer(t)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},A.prototype._processChunk=function(t,e,n){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,u=this,f="function"==typeof n;if(!f){var d,p=[],h=0;this.on("error",(function(t){d=t})),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw d;if(h>=l)throw S(this),new RangeError(c);var v=r.concat(p,h);return S(this),v}s(this._handle,"zlib binding closed");var y=this._handle.write(e,t,a,i,this._buffer,this._offset,o);function g(l,c){if(this&&(this.buffer=null,this.callback=null),!u._hadError){var d=o-c;if(s(d>=0,"have should not go down"),d>0){var m=u._buffer.slice(u._offset,u._offset+d);u._offset+=d,f?u.push(m):(p.push(m),h+=m.length)}if((0===c||u._offset>=u._chunkSize)&&(o=u._chunkSize,u._offset=0,u._buffer=r.allocUnsafe(u._chunkSize)),0===c){if(a+=i-l,i=l,!f)return!0;var v=u._handle.write(e,t,a,i,u._buffer,u._offset,u._chunkSize);return v.callback=g,void(v.buffer=t)}if(!f)return!1;n()}}y.buffer=t,y.callback=g},a.inherits(b,A),a.inherits(_,A),a.inherits(w,A),a.inherits(x,A),a.inherits(k,A),a.inherits(C,A),a.inherits(O,A)}).call(this,n("8oxB"))},S6bl:function(t,e,n){!function(t){"use strict";function e(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.info=r,this.align=i,this.prev=o}function n(t,n,r,i){var o=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=r&&(o=t.context.indented),t.context=new e(o,n,r,i,null,t.context)}function r(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}function i(t,e,n){return"variable"==e.prevToken||"type"==e.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,n))||!(!e.typeAtEndOfLine||t.column()!=t.indentation())||void 0}function o(t){for(;;){if(!t||"top"==t.type)return!0;if("}"==t.type&&"namespace"!=t.prev.info)return!1;t=t.prev}}function a(t){for(var e={},n=t.split(" "),r=0;r!?|\/]/,j=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=l.isReservedIdentifier||!1;function N(t,e){var n,r=t.next();if(_[r]){var i=_[r](t,e);if(!1!==i)return i}if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(e.tokenize=null),"string"}),e.tokenize(t,e);if(O.test(r))return c=r,null;if(E.test(r)){if(t.backUp(1),t.match(A))return"number";t.next()}if("/"==r){if(t.eat("*"))return e.tokenize=P,P(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(S.test(r)){for(;!t.match(/^\/[\/*]/,!1)&&t.eat(S););return"operator"}if(t.eatWhile(j),C)for(;t.match(C);)t.eatWhile(j);var o=t.current();return s(h,o)?(s(y,o)&&(c="newstatement"),s(g,o)&&(u=!0),"keyword"):s(m,o)?"type":s(v,o)||T&&T(o)?(s(y,o)&&(c="newstatement"),"builtin"):s(b,o)?"atom":"variable"}function P(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=null;break}r="*"==n}return"comment"}function L(t,e){l.typeFirstDefinitions&&t.eol()&&o(e.context)&&(e.typeAtEndOfLine=i(t,e,t.pos))}return{startState:function(t){return{tokenize:null,context:new e((t||0)-f,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,e){var a=e.context;if(t.sol()&&(null==a.align&&(a.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return L(t,e),null;c=u=null;var s=(e.tokenize||N)(t,e);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&t.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==e.context.type;)r(e);else if("{"==c)n(e,t.column(),"}");else if("["==c)n(e,t.column(),"]");else if("("==c)n(e,t.column(),")");else if("}"==c){for(;"statement"==a.type;)a=r(e);for("}"==a.type&&(a=r(e));"statement"==a.type;)a=r(e)}else c==a.type?r(e):x&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(e,t.column(),"statement",t.current());if("variable"==s&&("def"==e.prevToken||l.typeFirstDefinitions&&i(t,e,t.start)&&o(e.context)&&t.match(/^\s*\(/,!1))&&(s="def"),_.token){var f=_.token(t,e,s);void 0!==f&&(s=f)}return"def"==s&&!1===l.styleDefs&&(s="variable"),e.startOfLine=!1,e.prevToken=u?"def":s||c,L(t,e),s},indent:function(e,n){if(e.tokenize!=N&&null!=e.tokenize||e.typeAtEndOfLine)return t.Pass;var r=e.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(_.indent){var a=_.indent(e,r,n,f);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:d):!r.align||p&&")"==r.type?")"!=r.type||o?r.indented+(o?0:f)+(o||!s||/^(?:case|default)\b/.test(n)?0:f):r.indented+d:r.column+(o?0:1)},electricInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c=a("int long char short double float unsigned signed void bool"),u=a("SEL instancetype id Class Protocol BOOL");function f(t){return s(c,t)||/.+_t$/.test(t)}var d="case do else for if switch while struct enum union";function p(t,e){if(!e.startOfLine)return!1;for(var n,r=null;n=t.peek();){if("\\"==n&&t.match(/^.$/)){r=p;break}if("/"==n&&t.match(/^\/[\/\*]/,!1))break;t.next()}return e.tokenize=r,"meta"}function h(t,e){return"type"==e.prevToken&&"type"}function m(t){return!(!t||t.length<2||"_"!=t[0]||"_"!=t[1]&&t[1]===t[1].toLowerCase())}function v(t){return t.eatWhile(/[\w\.']/),"number"}function y(t,e){if(t.backUp(1),t.match(/(R|u8R|uR|UR|LR)/)){var n=t.match(/"([^\s\\()]{0,16})\(/);return!!n&&(e.cpp11RawStringDelim=n[1],e.tokenize=b,b(t,e))}return t.match(/(u8|u|U|L)/)?!!t.match(/["']/,!1)&&"string":(t.next(),!1)}function g(t,e){for(var n;null!=(n=t.next());)if('"'==n&&!t.eat('"')){e.tokenize=null;break}return"string"}function b(t,e){var n=e.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return t.match(new RegExp(".*?\\)"+n+'"'))?e.tokenize=null:t.skipToEnd(),"string"}function _(e,n){"string"==typeof e&&(e=[e]);var r=[];function i(t){if(t)for(var e in t)t.hasOwnProperty(e)&&r.push(e)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=e[0],t.registerHelper("hintWords",e[0],r));for(var o=0;o!?|\/#:@]/,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return!!t.match('""')&&(e.tokenize=w,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(t,n){var r=n.context;return!("}"!=r.type||!r.align||!t.eat(">"))&&(n.context=new e(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x(1),e.tokenize(t,e))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),_("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},"*":function(t,e){return"."==e.prevToken?"variable":"operator"},'"':function(t,e){var n;return e.tokenize=(n=t.match('""'),function(t,e){for(var r,i=!1,o=!1;!t.eol();){if(!n&&!i&&t.match('"')){o=!0;break}if(n&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(e.tokenize=null),"string"}),e.tokenize(t,e)},"/":function(t,e){return!!t.eat("*")&&(e.tokenize=x(1),e.tokenize(t,e))},indent:function(t,e,n,r){var i=n&&n.charAt(0);return"}"!=t.prevToken&&")"!=t.prevToken||""!=n?"operator"==t.prevToken&&"}"!=n&&"}"!=t.context.type||"variable"==t.prevToken&&"."==i||("}"==t.prevToken||")"==t.prevToken)&&"."==i?2*r+e.indented:e.align&&"}"==e.type?e.indented+(t.context.type==(n||"").charAt(0)?0:r):void 0:t.indented}},modeProps:{closeBrackets:{triples:'"'}}}),_(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":p},modeProps:{fold:["brace","include"]}}),_("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:f,blockKeywords:a(d),atoms:a("null true false"),hooks:{"#":p},modeProps:{fold:["brace","include"]}}),_("text/x-objectivec",{name:"clike",keywords:a(l+" bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"),types:function(t){return f(t)||s(u,t)},builtin:a("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINED NS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:a(d+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a("struct enum union @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:m,hooks:{"#":p,"*":h},modeProps:{fold:["brace","include"]}}),_("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:f,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":p},modeProps:{fold:["brace","include"]}});var k=null;_("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(t){var e=t.charAt(0);return e===e.toUpperCase()&&e!==e.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"},'"':function(t,e){return e.tokenize=function t(e){return function(n,r){for(var i,o=!1,a=!1;!n.eol();){if(!o&&n.match('"')&&("single"==e||n.match('""'))){a=!0;break}if(!o&&n.match("``")){k=t(e),a=!0;break}i=n.next(),o="single"==e&&!o&&"\\"==i}return a&&(r.tokenize=null),"string"}}(t.match('""')?"triple":"single"),e.tokenize(t,e)},"`":function(t,e){return!(!k||!t.match("`"))&&(e.tokenize=k,k=null,e.tokenize(t,e))},"'":function(t){return t.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(t,e,n){if(("variable"==n||"type"==n)&&"."==e.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n("VrN/"))},SDHs:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.user__menu {\n min-width: 280px;\n position: absolute;\n right: 0;\n left: auto;\n padding: 0;\n border-radius: 0;\n text-align: center;\n background-color: #fff;\n}\n.user__menu .user-header {\n z-index: 5;\n height: 100px;\n background-color: rgba(41, 58, 72, 0.69);\n margin: -1rem;\n overflow: hidden;\n}\n.user__menu .user-header>img {\n width: 100%;\n}\n.user__menu .user-avatar {\n z-index: 8;\n margin: -40px auto 0;\n height: 80px;\n width: 80px;\n border-radius: 50%;\n overflow: hidden;\n}\n.user__menu .user-avatar>img {\n background: #fff;\n height: 80px;\n width: 80px;\n border: 5px solid transparent;\n}\nheader .modal__footer {\n background-color: #f9f9f9;\n padding: 10px;\n border-top: 1px solid #e8e8e8;\n}\n",""])},SKRR:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".theme-card[data-v-135435cd] {\n background-size: cover;\n box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.25);\n font-size: 0.78rem;\n color: #ddd;\n height: 100%;\n}\n.theme-card .color-overlay[data-v-135435cd] {\n height: 100%;\n background: linear-gradient(to right, rgba(42, 159, 255, 0.2) 0%, #212120 60%, #212120 100%);\n background-blend-mode: multiply;\n}\n.theme-card .theme-content[data-v-135435cd] {\n width: 40%;\n float: right;\n padding-right: 1.25rem;\n height: 100%;\n margin-bottom: 0;\n}\n.theme-card .theme-content .theme-title[data-v-135435cd] {\n color: #ffffff;\n text-transform: uppercase;\n line-height: 1;\n letter-spacing: 4px;\n margin: 0.75rem 0;\n}\n.theme-card .theme-content .theme-info[data-v-135435cd] {\n letter-spacing: 1px;\n font-size: 0.8rem;\n line-height: 1;\n margin: 0;\n opacity: 0.6;\n}\n.theme-card .theme-content .theme-header[data-v-135435cd] {\n margin-bottom: 3rem;\n}\n.theme-card .theme-content .theme-desc[data-v-135435cd] {\n margin-bottom: 4.5rem;\n}\n.theme-card .theme-content .theme-btn[data-v-135435cd] {\n bottom: 1.25rem;\n right: 2.25rem;\n position: absolute;\n}\n.theme-card .icon-block[data-v-135435cd] {\n padding: 1.25em;\n display: inline-block;\n}\n.theme-card .icon-block__icon i[data-v-135435cd] {\n margin-right: 0.5em;\n color: #ffffff;\n opacity: 0.8;\n}\n.theme-card .icon-block__icon i[data-v-135435cd]:hover {\n opacity: 1;\n}\n@media (max-width: 992px) {\n.theme-card .theme-content[data-v-135435cd] {\n width: 100%;\n float: none;\n padding: 1.25rem;\n}\n.theme-card .color-overlay[data-v-135435cd] {\n background: linear-gradient(to bottom, rgba(0, 140, 186, 0.2) 0%, #212120 60%, #212120 100%);\n}\n.theme-card .icon-block[data-v-135435cd] {\n display: block;\n width: 100%;\n}\n}",""])},Tcbo:function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},TepM:function(t,e,n){"use strict";var r=n("JJuG");n.n(r).a},"U/kh":function(t,e,n){var r=n("jgXO");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},U6jy:function(t,e){t.exports=function(){for(var t={},e=0;e=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},V5G8:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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=9)}([function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},l={},c={},u={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=u.block:t&a.LEVEL&a.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}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"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(l[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.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){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(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=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),a=n(5),s=n(0),l=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(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 o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=c(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},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 r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.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=s.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 r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),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,r,i){t=t.split(r,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,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.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=s.find(t.nextSibling));var r=c(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function c(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.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 r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(6),s=n(2),l=n(0),c=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(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 o.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 r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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(){return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t){this.domNode=t,this.domNode[r.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 r.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 r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},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[r.DATA_KEY]&&delete this.domNode[r.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?r.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?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(7),o=n(8),a=n(0),s=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=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},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=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(1).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(1).default);e.default=a},function(t,e,n){t.exports=n(10)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=n(3),o=n(4),a=n(12),s=n(13),l=n(14),c=n(15),u=n(16),f=n(1),d=n(7),p=n(8),h=n(6),m=n(0),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.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";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();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){for(var e=0,n=this.head;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);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+l-t)):n(r,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),a=n(0),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=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,s),n.attach(),n}return i(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,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(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}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),a=n(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(4).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),a=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(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,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},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=a.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=a.Scope.INLINE_BLOT,e}(o.default);e.default=s}])},t.exports=r()},VYsd:function(t,e,n){var r=n("gycH");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),h=/PhantomJS/.test(t),m=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),v=/Android/.test(t),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),g=m||/Mac/.test(e),b=/\bCrOS\b/.test(t),_=/win/i.test(e),w=f&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=g&&(c||f&&(null==w||w<12.11)),k=n||a&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var O,E=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function A(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function S(t,e){return A(t).appendChild(e)}function j(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}m?$=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&($=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null};function D(t,e){for(var n=0;n=e)return r+Math.min(a,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var V=[""];function G(t){for(;V.length<=t;)V.push(Z(V)+" ");return V[t]}function Z(t){return t[t.length-1]}function Y(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function it(t){return t.charCodeAt(0)>=768&&rt.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var st=null;function lt(t,e,n){var r;st=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var ct=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(t,e,n){this.level=t,this.from=e,this.to=n}return function(l,c){var u="ltr"==c?"L":"R";if(0==l.length||"ltr"==c&&!n.test(l))return!1;for(var f,d=l.length,p=[],h=0;h-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function mt(t,e){var n=pt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function bt(t){t.prototype.on=function(t,e){dt(this,t,e)},t.prototype.off=function(t,e){ht(this,t,e)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function kt(t){_t(t),wt(t)}function Ct(t){return t.target||t.srcElement}function Ot(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),g&&t.ctrlKey&&1==e&&(e=3),e}var Et,At,St=function(){if(a&&s<9)return!1;var t=j("div");return"draggable"in t||"dragDrop"in t}();function jt(t){if(null==Et){var e=j("span","​");S(t,j("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Et=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Et?j("span","​"):j("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Tt(t){if(null!=At)return At;var e=S(t,document.createTextNode("AخA")),n=O(e,0,1).getBoundingClientRect(),r=O(e,1,2).getBoundingClientRect();return A(t),!(!n||n.left==n.right)&&(At=r.right-n.right<3)}var Nt,Pt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Lt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Mt="oncopy"in(Nt=j("div"))||(Nt.setAttribute("oncopy","return;"),"function"==typeof Nt.oncopy),$t=null,qt={},Rt={};function It(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),qt[t]=e}function Ft(t){if("string"==typeof t&&Rt.hasOwnProperty(t))t=Rt[t];else if(t&&"string"==typeof t.name&&Rt.hasOwnProperty(t.name)){var e=Rt[t.name];"string"==typeof e&&(e={name:e}),(t=J(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ft("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ft("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Dt(t,e){e=Ft(e);var n=qt[e.name];if(!n)return Dt(t,"text/plain");var r=n(t,e);if(Bt.hasOwnProperty(e.name)){var i=Bt[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Bt={};function zt(t,e){R(e,Bt.hasOwnProperty(t)?Bt[t]:Bt[t]={})}function Ut(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ht(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Kt(t,e,n){return!t.startState||t.startState(e,n)}var Wt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Vt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?ee(n,Vt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?ee(t.line,e):n<0?ee(t.line,0):t}(e,Vt(t,e.line).text.length)}function ce(t,e){for(var n=[],r=0;r=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pose},Wt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Wt.prototype.backUp=function(t){this.pos-=t},Wt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Wt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Wt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ue=function(t,e){this.state=t,this.lookAhead=e},fe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function de(t,e,n,r){var i=[t.state.modeGen],o={};we(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],l=1,c=0;n.state=!0,we(t,e.text,s.mode,n,(function(t,e){for(var n=l;ct&&i.splice(l,1,t,i[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Ut(t.doc.mode,r.state),o=de(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function he(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new fe(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Vt(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ue?c.lookAhead:0)<=o.modeFrontier))return s;var u=I(l.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(t,e,n),a=o>r.first&&Vt(r,o-1).stateAfter,s=a?fe.fromSaved(r,a,o):new fe(r,Kt(r.mode),o);return r.iter(o,e,(function(n){me(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}fe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,e,n){return e instanceof ue?new fe(t,Ut(t.mode,e.state),n,e.lookAhead):new fe(t,Ut(t.mode,e),n)},fe.prototype.save=function(t){var e=!1!==t?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function be(t,e,n,r){var i,o,a=t.doc,s=a.mode,l=Vt(a,(e=le(a,e)).line),c=he(t,e.line,n),u=new Wt(l.text,t.options.tabSize,c);for(r&&(o=[]);(r||u.post.options.maxHighlightLength?(s=!1,a&&me(t,e,r,f.pos),f.pos=e.length,l=null):l=_e(ye(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;c=e:o.to>e);(r||(r=[])).push(new Ce(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var b=0;be)&&(!n||Le(n,o.marker)<0)&&(n=o.marker)}return n}function Ie(t,e,n,r,i){var o=Vt(t,e),a=ke&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ne(c.to,n)>=0:ne(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ne(c.from,r)<=0:ne(c.from,r)<0)))return!0}}}function Fe(t){for(var e;e=$e(t);)t=e.find(-1,!0).line;return t}function De(t,e){var n=Vt(t,e),r=Fe(n);return n==r?e:Xt(r)}function Be(t,e){if(e>t.lastLine())return e;var n,r=Vt(t,e);if(!ze(t,r))return e;for(;n=qe(r);)r=n.find(1,!0).line;return Xt(r)+1}function ze(t,e){var n=ke&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ve=function(t,e,n){this.text=t,Te(this,e),this.height=n?n(this):1};function Ge(t){t.parent=null,je(t)}Ve.prototype.lineNo=function(){return Xt(this)},bt(Ve);var Ze={},Ye={};function Xe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Ye:Ze;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Je(t,e){var n=T("span",null,null,l?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=tn,Tt(t.display.measure)&&(a=ut(o,t.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],rn(o,r,pe(t,o,e!=t.display.externalMeasured&&Xt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(jt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return mt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function Qe(t){var e=j("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function tn(t,e,n,r,i,o,l){if(e){var c,u=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;ic&&f.from<=c);d++);if(f.to>=u)return t(n,r,i,o,a,s,l);t(n,r.slice(0,f.to-c),i,o,null,s,l),o=null,r=r.slice(f.to-c),c=f.to}}}function nn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function rn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,l,c,u,f,d,p=i.length,h=0,m=1,v="",y=0;;){if(y==h){l=c=u=s="",d=null,f=null,y=1/0;for(var g=[],b=void 0,_=0;_h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&y>w.to&&(y=w.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(u+=" "+x.startStyle),x.endStyle&&w.to==y&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var k in x.attributes)(d||(d={}))[k]=x.attributes[k];x.collapsed&&(!f||Le(f.marker,x)<0)&&(f=w)}else w.from>h&&y>w.from&&(y=w.from)}if(b)for(var C=0;C=p)break;for(var E=Math.min(p,y);;){if(v){var A=h+v.length;if(!f){var S=A>E?v.slice(0,E-h):v;e.addToken(e,S,a?a+l:l,u,h+S.length==y?c:"",s,d)}if(A>=E){v=v.slice(E-h),h=E;break}h=A,u=""}v=i.slice(o,o=n[m++]),a=Xe(n[m++],e.cm.options)}}else for(var j=1;jn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Nn(t,e,n,r){return Mn(t,Ln(t,e),n,r)}function Pn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Rn(e.map,n,r),l=o.node,c=o.start,u=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&it(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var p;c>0&&(f=r="right"),i=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+or(t.display),top:h.top,bottom:h.bottom}:qn}for(var m=i.top-e.rect.top,v=i.bottom-e.rect.top,y=(m+v)/2,g=e.view.measure.heights,b=0;be)&&(i=(o=l-s)-1,e>=l&&(a="right")),null!=i){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=0&&(n=t[i]).left==n.right;i--);return n}function Fn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var f=lt(s,l,c),d=st,p=u(l,f,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function Zn(t,e){var n=0;e=le(t.doc,e),t.options.lineWrapping||(n=or(t.display)*e.ch);var r=Vt(t.doc,e.line),i=He(r)+Cn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(t,e,n,r,i){var o=ee(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Xn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Jt(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,Vt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Vt(r,i);;){var s=er(t,a,i,e,n),l=Re(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Vt(r,i=c.line)}}function Jn(t,e,n,r){r-=Hn(e);var i=e.text.length,o=at((function(e){return Mn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=at((function(e){return Mn(t,n,e).top>r}),o,i)}}function Qn(t,e,n,r){return n||(n=Ln(t,e)),Jn(t,e,n,Kn(t,e,Mn(t,n,r),"line").top)}function tr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function er(t,e,n,r,i){i-=He(e);var o=Ln(t,e),a=Hn(e),s=0,l=e.text.length,c=!0,u=ut(e,t.doc.direction);if(u){var f=(t.options.lineWrapping?rr:nr)(t,e,n,o,u,r,i);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,p,h=null,m=null,v=at((function(e){var n=Mn(t,o,e);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=e,m=n),!0)}),s,l),y=!1;if(m){var g=r-m.left=_.bottom?1:0}return Yn(n,v=ot(e.text,v,1),p,y,r-d)}function nr(t,e,n,r,i,o,a){var s=at((function(s){var l=i[s],c=1!=l.level;return tr(Gn(t,ee(n,c?l.to:l.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Gn(t,ee(n,c?l.from:l.to,c?"after":"before"),"line",e,r);tr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function rr(t,e,n,r,i,o,a){var s=Jn(t,e,r,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=l)){var h=Mn(t,r,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function ir(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==$n){$n=j("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)$n.appendChild(document.createTextNode("x")),$n.appendChild(j("br"));$n.appendChild(document.createTextNode("x"))}S(t.measure,$n);var n=$n.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),A(t.measure),n||1}function or(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=j("span","xxxxxxxxxx"),n=j("pre",[e],"CodeMirror-line-like");S(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ar(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:sr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function sr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function lr(t){var e=ir(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/or(t.display)-3);return function(i){if(ze(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)ke&&De(t.doc,e)i.viewFrom?hr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)hr(t);else if(e<=i.viewFrom){var o=mr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(t)}else if(n>=i.viewTo){var a=mr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(t)}else{var s=mr(t,e,e,-1),l=mr(t,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(an(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):hr(t)}var c=i.externalMeasured;c&&(n=i.lineN&&e=r.viewTo)){var o=r.view[fr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==D(a,n)&&a.push(n)}}}function hr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function mr(t,e,n,r){var i,o=fr(t,e),a=t.display.view;if(!ke||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}for(;De(t.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().linee||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(m,n||0,null==r?d:r,(function(t,e,i,f){var v="ltr"==i,y=p(t,v?"left":"right"),g=p(e-1,v?"right":"left"),b=null==n&&0==t,_=null==r&&e==d,w=0==f,x=!m||f==m.length-1;if(g.top-y.top<=3){var k=(c?_:b)&&x,C=(c?b:_)&&w?s:(v?y:g).left,O=k?l:(v?g:y).right;u(C,y.top,O-C,y.bottom)}else{var E,A,S,j;v?(E=c&&b&&w?s:y.left,A=c?l:h(t,i,"before"),S=c?s:h(e,i,"after"),j=c&&_&&x?l:g.right):(E=c?h(t,i,"before"):s,A=!c&&b&&w?l:y.right,S=!c&&_&&x?s:g.left,j=c?h(e,i,"after"):l),u(E,y.top,A-E,y.bottom),y.bottom0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function kr(t){t.state.focused||(t.display.input.focus(),Or(t))}function Cr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Er(t))}),100)}function Or(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(mt(t,"focus",t,e),t.state.focused=!0,L(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function Er(t,e){t.state.delayingBlurEvent||(t.state.focused&&(mt(t,"blur",t,e),t.state.focused=!1,E(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Ar(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Yt(i.line,l),Sr(i.line),i.rest))for(var p=0;pt.display.sizerWidth){var h=Math.ceil(c/or(t.display));h>t.display.maxLineLength&&(t.display.maxLineLength=h,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Sr(t){if(t.widgets)for(var e=0;e=a&&(o=Jt(e,He(Vt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Tr(t,e){var n=t.display,r=ir(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=jn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+On(n),l=e.tops-r;if(e.topi+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=i&&(a.scrollTop=u)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,d=Sn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>d;return p&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.leftd+f-3&&(a.scrollLeft=e.right+(p?0:10)-d),a}function Nr(t,e){null!=e&&(Mr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Pr(t){Mr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Lr(t,e,n){null==e&&null==n||Mr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Mr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,$r(t,Zn(t,e.from),Zn(t,e.to),e.margin))}function $r(t,e,n,r){var i=Tr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Lr(t,i.scrollLeft,i.scrollTop)}function qr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||li(t,{top:e}),Rr(t,e,!0),n&&li(t),ri(t,100))}function Rr(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Ir(t,e,n,r){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Fr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+On(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Dr=function(t,e,n){this.cm=n;var r=this.vert=j("div",[j("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=j("div",[j("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),dt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),dt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Dr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var t=g&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Dr.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Dr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Br=function(){};function zr(t,e){e||(e=Fr(t));var n=t.display.barWidth,r=t.display.barHeight;Ur(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Ar(t),Ur(t,Fr(t)),n=t.display.barWidth,r=t.display.barHeight}function Ur(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Br.prototype.update=function(){return{bottom:0,right:0}},Br.prototype.setScrollLeft=function(){},Br.prototype.setScrollTop=function(){},Br.prototype.clear=function(){};var Hr={native:Dr,null:Br};function Kr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&E(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Hr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),dt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Ir(t,e):qr(t,e)}),t),t.display.scrollbars.addClass&&L(t.display.wrapper,t.display.scrollbars.addClass)}var Wr=0;function Vr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Gr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Yr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Ar(e),t.barMeasure=Fr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Nn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+An(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Sn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Xr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=j("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+An(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?ee(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?ee(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=Gn(t,e),l=n&&n!=e?Gn(t,n):s,c=Tr(t,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=c.scrollTop&&(qr(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Ir(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(e,le(r,t.scrollToPos.from),le(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a=t.display.viewTo)){var n=+new Date+t.options.workTime,r=he(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Ut(e.mode,r.state):null,l=de(t,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return ri(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Qr(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;di(t)&&(hr(t),e.dims=ar(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),ke&&(o=De(t.doc,o),a=Be(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=an(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=an(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,fr(t,n)))),r.viewTo=n}(t,o,a),n.viewOffset=He(Vt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=vr(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=P();if(!e||!N(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&N(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&g&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,f=0;f-1&&(p=!1),fn(t,d,u,n)),p&&(A(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(te(t.options,u)))),a=d.node.nextSibling}else{var h=gn(t,d,u,n);o.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P()&&(t.activeElt.focus(),t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(u),A(n.cursorDiv),A(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function si(t,e){for(var n=e.viewport,r=!0;(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Sn(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+On(t.display)-jn(t),n.top)}),e.visible=jr(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&ai(t,e);r=!1){Ar(t);var i=Fr(t);yr(t),zr(t,i),ui(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function li(t,e){var n=new oi(t,e);if(ai(t,n)){Ar(t),si(t,n);var r=Fr(t);yr(t),zr(t,r),ui(t,r),n.finish()}}function ci(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ui(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+An(t)+"px"}function fi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=sr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&g&&l)t:for(var d=e.target,p=a.view;d!=s;d=d.parentNode)for(var h=0;h=0&&ne(t,r.to())<=0)return n}return-1};var ki=function(t,e){this.anchor=t,this.head=e};function Ci(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ne(t.from(),e.from())})),n=D(e,i);for(var o=1;o0:l>=0){var c=ae(s.from(),a.from()),u=oe(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new ki(f?u:c,f?c:u))}}return new xi(e,n)}function Oi(t,e){return new xi([new ki(t,e||t)],0)}function Ei(t){return t.text?ee(t.from.line+t.text.length-1,Z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Ai(t,e){if(ne(t,e.from)<0)return t;if(ne(t,e.to)<=0)return Ei(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ei(e).ch-e.to.ch),ee(n,r)}function Si(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,h-1),t.insert(s.line+1,y)}cn(t,"change",t,e)}function Mi(t,e,n){!function t(r,i,o){if(r.linked)for(var a=0;as-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Fi(t.done),Z(t.done)):t.done.length&&!Z(t.done).ranges?Z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Z(t.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==ne(e.from,e.to)&&0==ne(e.from,a.to)?a.to=Ei(e):o.changes.push(Ii(t,e));else{var l=Z(i.done);for(l&&l.ranges||zi(t.sel,i.done),o={changes:[Ii(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||mt(t,"historyAdded")}function Bi(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Z(i.done),e))?i.done[i.done.length-1]=e:zi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}function zi(t,e){var n=Z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Ui(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Hi(t){if(!t)return null;for(var e,n=0;n-1&&(Z(s)[f]=c[f],delete c[f])}}}return r}function Vi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ne(e,i)<0;o!=ne(n,i)<0?(i=e,e=n):o!=ne(e,n)<0&&(e=n)}return new ki(i,e)}return new ki(n||e,e)}function Gi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Qi(t,new xi([Vi(t.sel.primary(),e,n,i)],0),r)}function Zi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(i&&(mt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(f=ao(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(d=ne(f,n))&&(r<0?d<0:d>0))return io(t,f,e,r,i)}var p=l.find(r<0?-1:1);return(r<0?c:u)&&(p=ao(t,p,r,p.line==e.line?o:null)),p?io(t,p,e,r,i):null}}return e}function oo(t,e,n,r,i){var o=r||1,a=io(t,e,n,o,i)||!i&&io(t,e,n,o,!0)||io(t,e,n,-o,i)||!i&&io(t,e,n,-o,!0);return a||(t.cantEdit=!0,ee(t.first,0))}function ao(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?le(t,ee(e.line-1)):null:n>0&&e.ch==(r||Vt(t,e.line)).text.length?e.line0)){var u=[l,1],f=ne(c.from,s.from),d=ne(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)uo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else uo(t,e)}}function uo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ne(e.from,e.to)){var n=Si(t,e);Di(t,e,n,t.cm?t.cm.curOp.id:NaN),ho(t,e,n,Ae(t,e));var r=[];Mi(t,(function(t,n){n||-1!=D(r,t.history)||(go(t.history,e),r.push(t.history)),ho(t,e,null,Ae(t,e))}))}}function fo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c=0;--p){var h=d(p);if(h)return h.v}}}}function po(t,e){if(0!=e&&(t.first+=e,t.sel=new xi(Y(t.sel.ranges,(function(t){return new ki(ee(t.anchor.line+e,t.anchor.ch),ee(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){dr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ee(o,Vt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Gt(t,e.from,e.to),n||(n=Si(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=Xt(Fe(Vt(r,o.line))),r.iter(l,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&yt(t),Li(r,e,n,lr(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=Ke(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Vt(t,r).stateAfter;if(i&&(!(i instanceof ue)||r+i.lookAhead1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ie(t,e.line,e,n,o)||e.line!=n.line&&Ie(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ke=!0}o.addToHistory&&Di(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&Fe(t)==c.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&Yt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){ze(t,e)&&Yt(e,0)})),o.clearOnEnter&&dt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)dr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)pr(c,u,"text");o.atomic&&no(c.doc),cn(c,"markerAdded",c,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Vr(t),gt(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&dr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&cn(t,"markerCleared",t,this,r,i),e&&Gr(t),this.parent&&this.parent.clear()}},Oo.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;l--)co(this,r[l]);s?Ji(this,s):this.cm&&Pr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=le(this,t),e=le(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),le(this,ee(n,e))},indexFromPos:function(t){var e=(t=le(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var u=t.dataTransfer.getData("Text");if(u){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),to(e.doc,Oi(n,n)),f)for(var d=0;d=0;e--)mo(t.doc,"",r[e].from,r[e].to,"+delete");Pr(t)}))}function Jo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Qo(t,e,n){var r=Jo(t,e.ch,n);return null==r?null:new ee(e.line,r,n<0?"after":"before")}function ta(t,e,n,r,i){if(t){var o=ut(n,e.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Ln(e,n);a=i<0?n.text.length-1:0;var u=Mn(e,c,a).top;a=at((function(t){return Mn(e,c,t).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new ee(r,a,l)}}return new ee(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=g?Uo.macDefault:Uo.pcDefault;var ea={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),U)},killLine:function(t){return Xo(t,(function(e){if(e.empty()){var n=Vt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ee(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ee(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Vt(t.doc,i.line-1).text;a&&(i=new ee(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ee(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Qr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(ne((i=c.ranges[i]).from(),e)<0||e.xRel>0)&&(ne(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,c=ti(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,ht(i.wrapper.ownerDocument,"mouseup",c),ht(i.wrapper.ownerDocument,"mousemove",u),ht(i.scroller,"dragstart",f),ht(i.scroller,"drop",c),o||(_t(e),r.addNew||Gi(t.doc,n,null,null,r.extend),l||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),dt(i.wrapper.ownerDocument,"mouseup",c),dt(i.wrapper.ownerDocument,"mousemove",u),dt(i.scroller,"dragstart",f),dt(i.scroller,"drop",c),Cr(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;_t(e);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=ur(t,e,!0,!0),s=-1;else{var u=ya(t,n,r.unit);a=r.extend?Vi(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Qi(o,Ci(t,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Ci(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Yi(o,s,a,H):(s=0,Qi(o,new xi([a],0),H),l=o.sel);var f=n;function d(e){if(0!=ne(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],c=t.options.tabSize,u=I(Vt(o,n.line).text,n.ch,c),d=I(Vt(o,e.line).text,e.ch,c),p=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,e.line),v=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=v;m++){var y=Vt(o,m).text,g=W(y,p,c);p==h?i.push(new ki(ee(m,g),ee(m,g))):y.length>g&&i.push(new ki(ee(m,g),ee(m,W(y,h,c))))}i.length||i.push(new ki(n,n)),Qi(o,Ci(t,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,_=a,w=ya(t,e,r.unit),x=_.anchor;ne(w.anchor,x)>0?(b=w.head,x=ae(_.from(),w.anchor)):(b=w.anchor,x=oe(_.to(),w.head));var k=l.ranges.slice(0);k[s]=function(t,e){var n=e.anchor,r=e.head,i=Vt(t.doc,n.line);if(0==ne(n,r)&&n.sticky==r.sticky)return e;var o=ut(i);if(!o)return e;var a=lt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=lt(o,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?f<0:f>0}var d=o[c+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?e:new ki(new ee(n.line,h,m),r)}(t,new ki(le(o,x),b)),Qi(o,Ci(t,k,s),H)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(e){t.state.selectingText=!1,h=1/0,e&&(_t(e),i.input.focus()),ht(i.wrapper.ownerDocument,"mousemove",v),ht(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ti(t,(function(e){0!==e.buttons&&Ot(e)?function e(n){var a=++h,s=ur(t,n,!0,"rectangle"==r.unit);if(s)if(0!=ne(s,f)){t.curOp.focus=P(),d(s);var l=jr(i,o);(s.line>=l.to||s.linep.bottom?20:0;c&&setTimeout(ti(t,(function(){h==a&&(i.scroller.scrollTop+=c,e(n))})),50)}}(e):m(e)})),y=ti(t,m);t.state.selectingText=y,dt(i.wrapper.ownerDocument,"mousemove",v),dt(i.wrapper.ownerDocument,"mouseup",y)}(t,r,e,o)}(e,r,o,t):Ct(t)==n.scroller&&_t(t):2==i?(r&&Gi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?e.display.input.onContextMenu(t):Cr(e)))}}function ya(t,e,n){if("char"==n)return new ki(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new ki(ee(e.line,0),le(t.doc,ee(e.line+1,0)));var r=n(t,e);return new ki(r.from,r.to)}function ga(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&_t(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!gt(t,n))return xt(e);o-=s.top-a.viewOffset;for(var l=0;l=i)return mt(t,n,t,Jt(t.doc,o),t.display.gutterSpecs[l].className,e),xt(e)}}function ba(t,e){return ga(t,e,"gutterClick",!0)}function _a(t,e){kn(t.display,e)||function(t,e){return!!gt(t,"gutterContextMenu")&&ga(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||k||t.display.input.onContextMenu(e)}function wa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bn(t)}ma.prototype.compare=function(t,e,n){return this.time+400>t&&0==ne(e,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},ka={},Ca={};function Oa(t,e,n){if(!e!=!(n&&n!=xa)){var r=t.display.dragFunctions,i=e?dt:ht;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ea(t){t.options.lineWrapping?(L(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(E(t.display.wrapper,"CodeMirror-wrap"),We(t)),cr(t),dr(t),Bn(t),setTimeout((function(){return zr(t)}),100)}function Aa(t,e){var n=this;if(!(this instanceof Aa))return new Aa(t,e);this.options=e=e?R(e):{},R(ka,e,!1);var r=e.value;"string"==typeof r?r=new No(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Aa.inputStyles[e.inputStyle](this),o=this.display=new vi(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,wa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;dt(e.scroller,"mousedown",ti(t,va)),dt(e.scroller,"dblclick",a&&s<11?ti(t,(function(e){if(!vt(t,e)){var n=ur(t,e);if(n&&!ba(t,e)&&!kn(t.display,e)){_t(e);var r=t.findWordAt(n);Gi(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||_t(e)}),dt(e.scroller,"contextmenu",(function(e){return _a(t,e)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}dt(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ba(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),dt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),dt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!kn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(s):new ki(ee(s.line,0),le(t.doc,ee(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),_t(n)}i()})),dt(e.scroller,"touchcancel",i),dt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(qr(t,e.scroller.scrollTop),Ir(t,e.scroller.scrollLeft,!0),mt(t,"scroll",t))})),dt(e.scroller,"mousewheel",(function(e){return wi(t,e)})),dt(e.scroller,"DOMMouseScroll",(function(e){return wi(t,e)})),dt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||kt(e)},over:function(e){vt(t,e)||(function(t,e){var n=ur(t,e);if(n){var r=document.createDocumentFragment();br(t,n,r),t.display.dragCursor||(t.display.dragCursor=j("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),S(t.display.dragCursor,r)}}(t,e),kt(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Po<100))kt(e);else if(!vt(t,e)&&!kn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=j("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ti(t,Lo),leave:function(e){vt(t,e)||Mo(t)}};var l=e.input.getField();dt(l,"keyup",(function(e){return fa.call(t,e)})),dt(l,"keydown",ti(t,ua)),dt(l,"keypress",ti(t,da)),dt(l,"focus",(function(e){return Or(t,e)})),dt(l,"blur",(function(e){return Er(t,e)}))}(this),Ro(),Vr(this),this.curOp.forceUpdate=!0,$i(this,r),e.autofocus&&!y||this.hasFocus()?setTimeout(q(Or,this),20):Er(this),Ca)Ca.hasOwnProperty(c)&&Ca[c](n,e[c],xa);di(this),e.finishInit&&e.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?I(Vt(o,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var f="",d=0;if(t.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)d+=a,f+="\t";if(da,l=Pt(e),c=null;if(s&&r.ranges.length>1)if(Ta&&Ta.text.join("\n")==e){if(r.ranges.length%Ta.text.length==0){c=[];for(var u=0;u=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ee(h.line,h.ch-n):t.state.overwrite&&!s?m=ee(m.line,Math.min(Vt(o,m.line).text.length,m.ch+Z(l).length)):s&&Ta&&Ta.lineWise&&Ta.text.join("\n")==e&&(h=m=ee(h.line,0)));var v={from:h,to:m,text:c?c[d%c.length]:l,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};co(t.doc,v),cn(t,"inputRead",t,v)}e&&!s&&Ma(t,e),Pr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function La(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Qr(e,(function(){return Pa(e,n,0,null,"paste")})),!0}function Ma(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=ja(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Vt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ja(t,i.head.line,"smart"));a&&cn(t,"electricInput",t,i.head.line)}}}function $a(t){for(var e=[],n=[],r=0;r=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lt(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var p=f?"before":"after";return new ee(n.line,d,p)}}var h=function(t,e,r){for(var o=function(t,e){return e?new ee(n.line,l(t,1),"before"):new ee(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==v||r>0&&v==e.text.length||!(m=h(r>0?0:i.length-1,r,c(v)))?null:m}(t.cm,s,e,n):Qo(s,e,n))){if(r||(a=e.line+n)=t.first+t.size||(e=new ee(a,e.ch,e.sticky),!(s=Vt(t,a))))return!1;e=ta(i,t.cm,s,e.line,n)}else e=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,u="group"==r,f=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=s.text.charAt(e.ch)||"\n",h=et(p,f)?"w":u&&"\n"==p?"n":!u||/\s/.test(p)?null:"p";if(!u||d||h||(h="s"),c&&c!=h){n<0&&(n=1,l(),e.sticky="after");break}if(h&&(c=h),n>0&&!l(!d))break}var m=oo(t,e,o,a,!0);return re(o,m)&&(m.hitSide=!0),m}function Fa(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*ir(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Xn(t,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Da=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(t,e){var n=Pn(t,e.line);if(!n||n.hidden)return null;var r=Vt(t.doc,e.line),i=Tn(n,r,e.line),o=ut(r,t.doc.direction),a="left";o&&(a=lt(o,e.ch)%2?"right":"left");var s=Rn(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function za(t,e){return e&&(t.bad=!0),t}function Ua(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return za(t.clipPos(ee(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i=e.display.viewTo||o.line=e.display.viewFrom&&Ba(e,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=ee(a.line-1,Vt(r.doc,a.line-1).length)),s.ch==Vt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(t=fr(r,a.line))?(e=Xt(i.view[0].line),n=i.view[0].node):(e=Xt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,c,u=fr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Xt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(t){t&&(c(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var o,d=e.getAttribute("cm-marker");if(d){var p=t.findMarks(ee(r,0),ee(i+1,0),(v=+d,function(t){return t.id==v}));return void(p.length&&(o=p[0].find(0))&&u(Gt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;h&&c();for(var m=0;m1&&d.length>1;)if(Z(f)==Z(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),e++}for(var p=0,h=0,m=f[0],v=d[0],y=Math.min(m.length,v.length);pa.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var w=ee(e,p),x=ee(l,d.length?Z(d).length-h:0);return f.length>1||f[0]||ne(w,x)?(mo(r.doc,f,w,x,"+input"),!0):void 0},Da.prototype.ensurePolled=function(){this.forceCompositionEnd()},Da.prototype.reset=function(){this.forceCompositionEnd()},Da.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Da.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Da.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return dr(t.cm)}))},Da.prototype.setUneditable=function(t){t.contentEditable="false"},Da.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Pa)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Da.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;var Ka=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Ka.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=$a(r);Na({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,U):(n.prevInput="",i.value=e.text.join("\n"),$(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(i.style.width="0px"),dt(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),dt(i,"paste",(function(t){vt(r,t)||La(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),dt(i,"cut",o),dt(i,"copy",o),dt(t.scroller,"paste",(function(e){if(!kn(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),dt(t.lineSpace,"selectstart",(function(e){kn(t,e)||_t(e)})),dt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),dt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ka.prototype.createField=function(t){this.wrapper=Ra(),this.textarea=this.wrapper.firstChild},Ka.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Gn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ka.prototype.showSelection=function(t){var e=this.cm.display;S(e.cursorDiv,t.cursors),S(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ka.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&$(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ka.prototype.getField=function(){return this.textarea},Ka.prototype.supportsTouch=function(){return!1},Ka.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||P()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ka.prototype.blur=function(){this.textarea.blur()},Ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ka.prototype.receivedFocus=function(){this.slowPoll()},Ka.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ka.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Ka.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Lt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||g&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ka.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ka.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ur(n,t),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Qi)(n.doc,Oi(o),U);var u,d=i.style.cssText,p=e.wrapper.style.cssText,h=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){kt(t);var m=function(){ht(window,"mouseup",m),setTimeout(y,20)};dt(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(n,so)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ka.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Ka.prototype.setUneditable=function(){},Ka.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=xa&&i(t,e,n)}:i)}t.defineOption=n,t.Init=xa,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Ti(t)}),!0),n("indentUnit",2,Ti,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ni(t),Bn(t),dr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ee(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(t.doc,e,n[i],ee(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=xa&&t.refresh()})),n("specialCharPlaceholder",Qe,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){wa(t),mi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Yo(e),i=n!=xa&&Yo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ea,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pi(e,t.options.lineNumbers),mi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?sr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return zr(t)}),!0),n("scrollbarStyle","native",(function(t){Kr(t),zr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=pi(t.options.gutters,e),mi(t)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(t){return t}),mi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Er(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Oa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ni,!0),n("addModeClass",!1,Ni,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ni,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Aa),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ti(this,e[t])(this,n,i),mt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Yo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(ja(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Pr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Yi(this.doc,r,new ki(o,c[r].to()),U)}}})),getTokenAt:function(t,e){return be(this,t,e)},getLineTokens:function(t,e){return be(this,ee(t),e,!0)},getTokenTypeAt:function(t){t=le(this.doc,t);var e,n=pe(this,Vt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(t=o,i=!0),r=Vt(this.doc,t)}else r=t;return Kn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-He(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,a,s,l=this.display,c=(t=Gn(this,le(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)c=t.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>f)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=f&&(c=t.bottom),u+e.offsetWidth>d&&(u=d-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==i?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(s=Tr(o,a)).scrollTop&&qr(o,s.scrollTop),null!=s.scrollLeft&&Ir(o,s.scrollLeft))},triggerOnKeyDown:ei(ua),triggerOnKeyPress:ei(da),triggerOnKeyUp:fa,triggerOnMouseDown:ei(va),execCommand:function(t){if(ea.hasOwnProperty(t))return ea[t].call(null,this)},triggerElectric:ei((function(t){Ma(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=le(this.doc,t),a=0;a0&&a(e.charAt(n-1));)--n;for(;r.5)&&cr(this),mt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),$i(this,t),Bn(this),this.display.input.reset(),Lr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},bt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Aa);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Va in No.prototype)No.prototype.hasOwnProperty(Va)&&D(Wa,Va)<0&&(Aa.prototype[Va]=function(t){return function(){return t.apply(this.doc,arguments)}}(No.prototype[Va]));return bt(No),Aa.inputStyles={textarea:Ka,contenteditable:Da},Aa.defineMode=function(t){Aa.defaults.mode||"null"==t||(Aa.defaults.mode=t),It.apply(this,arguments)},Aa.defineMIME=function(t,e){Rt[t]=e},Aa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(t,e){Aa.prototype[t]=e},Aa.defineDocExtension=function(t,e){No.prototype[t]=e},Aa.fromTextArea=function(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(dt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ht(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Aa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ht,t.on=dt,t.wheelEventPixels=_i,t.Doc=No,t.splitLines=Pt,t.countColumn=I,t.findColumn=W,t.isWordChar=tt,t.Pass=z,t.signal=mt,t.Line=Ve,t.changeEnd=Ei,t.scrollbarModel=Hr,t.Pos=ee,t.cmpPos=ne,t.modes=qt,t.mimeModes=Rt,t.resolveMode=Ft,t.getMode=Dt,t.modeExtensions=Bt,t.extendMode=zt,t.copyState=Ut,t.startState=Kt,t.innerMode=Ht,t.commands=ea,t.keyMap=Uo,t.keyName=Zo,t.isModifierKey=Vo,t.lookupKey=Wo,t.normalizeKeyMap=Ko,t.StringStream=Wt,t.SharedTextMarker=Ao,t.TextMarker=Oo,t.LineWidget=xo,t.e_preventDefault=_t,t.e_stopPropagation=wt,t.e_stop=kt,t.addClass=L,t.contains=N,t.rmClass=E,t.keyNames=Fo}(Aa),Aa.version="5.49.0",Aa}()},WFqU:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("yLpj"))},WiJw:function(t,e,n){var r=n("D7zT");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},WmSy:function(t,e,n){(function(e,r,i){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=222)}([function(t,e,n){t.exports=n(189)},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(5),i=n(24),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(60);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){"use strict";var r=n(4);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";var r=n(68);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++nu))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var p=-1,h=!0,m=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c},function(t,e,n){"use strict";var r=n(43);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e){t.exports=n("lJCZ")},function(t,e){t.exports=n("JPgR")},function(t,e,n){var r=n(72),i=n(69),o=n(70),a=n(201),s=n(202).Writable,l=n(203)("follow-redirects"),c={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},u=Object.create(null);function f(t,e){s.call(this),t.headers=t.headers||{},this._options=t,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t.host&&(t.hostname||(t.hostname=t.host),delete t.host),e&&this.on("response",e);var n=this;if(this._onNativeResponse=function(t){n._processResponse(t)},!t.pathname&&t.path){var r=t.path.indexOf("?");r<0?t.pathname=t.path:(t.pathname=t.path.substring(0,r),t.search=t.path.substring(r))}this._performRequest()}function d(t){var e={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(t).forEach((function(i){var o=i+":",s=n[o]=t[i],c=e[i]=Object.create(s);c.request=function(t,i){return"string"==typeof t?(t=r.parse(t)).maxRedirects=e.maxRedirects:t=Object.assign({protocol:o,maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t),t.nativeProtocols=n,a.equal(t.protocol,o,"protocol mismatch"),l("options",t),new f(t,i)},c.get=function(t,e){var n=c.request(t,e);return n.end(),n}})),e}["abort","aborted","error","socket","timeout"].forEach((function(t){u[t]=function(e){this._redirectable.emit(t,e)}})),f.prototype=Object.create(s.prototype),f.prototype.write=function(t,e,n){if(!("string"==typeof t||"object"==typeof t&&"length"in t))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof e&&(n=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,n)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):n&&n()},f.prototype.end=function(t,e,n){"function"==typeof t?(n=t,t=e=null):"function"==typeof e&&(n=e,e=null);var r=this._currentRequest;this.write(t||"",e,(function(){r.end(null,null,n)}))},f.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},f.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach((function(t){f.prototype[t]=function(e,n){return this._currentRequest[t](e,n)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(f.prototype,t,{get:function(){return this._currentRequest[t]}})})),f.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(e){if(this._options.agents){var n=t.substr(0,t.length-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=r.format(this._options),i._redirectable=this,u)o&&i.on(o,u[o]);if(this._isRedirect){var a=0,s=this._requestBodyBuffers;!function t(){if(a=300&&t.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var n,i=this._options.headers;if(307!==t.statusCode&&!(this._options.method in c))for(n in this._options.method="GET",this._requestBodyBuffers=[],i)/^content-/i.test(n)&&delete i[n];if(!this._isRedirect)for(n in i)/^host$/i.test(n)&&delete i[n];var o=r.resolve(this._currentUrl,e);l("redirecting to",o),Object.assign(this._options,r.parse(o)),this._isRedirect=!0,this._performRequest(),t.destroy()}else t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[]},t.exports=d({http:i,https:o}),t.exports.wrap=d},function(t,e){t.exports=n("CxY0")},function(t,e,n){function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var a=new Array(arguments.length),s=0;s-1}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(18);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(18),i=n(30),o=n(32);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(31),i=n(95),o=n(10),a=n(46),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:s).test(a(t))}},function(t,e,n){var r=n(20),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(96),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(6)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(99),i=n(18),o=n(30);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(100),i=n(101),o=n(102),a=n(103),s=n(104);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(16),i=n(14),o=n(36),a=n(10);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(28),i=n(14),o=n(23);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var l=r(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[l?e[c]:c]:void 0}}},function(t,e,n){var r=n(182),i=n(28),o=n(183),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(t,i(e,3),l)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(190),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=_;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(N([])));g&&g!==r&&i.call(g,a)&&(v=g);var b=C.prototype=x.prototype=Object.create(v);k.prototype=b.constructor=C,C.constructor=k,C[l]=k.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},O(E.prototype),E.prototype[s]=function(){return this},u.AsyncIterator=E,u.async=function(t,e,n,r){var i=new E(_(t,e,n,r));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=w(t,e,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function k(){}function C(){}function O(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(n,r){function o(){return new Promise((function(e,o){!function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}(n,r,e,o)}))}return e=e?e.then(o,o):o()}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r-1&&(j.maxBodyLength=t.maxContentLength);var D=T.request(j,(function(e){if(!D.aborted){var n=e;switch(e.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=204===e.statusCode?n:n.pipe(p.createUnzip()),delete e.headers["content-encoding"]}var r=e.req||D,o={status:e.statusCode,statusText:e.statusMessage,headers:e.headers,config:t,request:r};if("stream"===t.responseType)o.data=n,a(b,_,o);else{var s=[];n.on("data",(function(e){s.push(e),t.maxContentLength>-1&&i.concat(s).length>t.maxContentLength&&(n.destroy(),_(m("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,r)))})),n.on("error",(function(e){D.aborted||_(v(e,t,null,r))})),n.on("end",(function(){var e=i.concat(s);"arraybuffer"!==t.responseType&&(e=e.toString(t.responseEncoding)),o.data=e,a(b,_,o)}))}}}));D.on("error",(function(e){D.aborted||_(v(e,t,null,D))})),t.timeout&&(g=setTimeout((function(){D.abort(),_(m("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",D))}),t.timeout)),t.cancelToken&&t.cancelToken.promise.then((function(t){D.aborted||(D.abort(),_(t))})),o.isStream(w)?w.on("error",(function(e){_(v(e,t,null,D))})).pipe(D):D.end(w)}))}},function(t,e){t.exports=n("9lTW")},function(t,e){t.exports=n("1IWx")},function(t,e,n){void 0===r||"renderer"===r.type?t.exports=n(204):t.exports=n(206)},function(t,e,n){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(73)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())},function(t,e){var n=1e3,r=6e4,i=36e5,o=24*i;function a(t,e,n){if(!(t0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===l&&!1===isNaN(t))return e.long?a(s=t,o,"day")||a(s,i,"hour")||a(s,r,"minute")||a(s,n,"second")||s+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var i=n(207),o=n(208);(e=t.exports=n(73)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;r=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}function s(){return r.env.DEBUG}e.inspectOpts=Object.keys(r.env).filter((function(t){return/^debug_/i.test(t)})).reduce((function(t,e){var n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(function(t,e){return e.toUpperCase()})),i=r.env[e];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),t[n]=i,t}),{}),e.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,o.inspect(t,this.inspectOpts).split("\n").map((function(t){return t.trim()})).join(" ")},e.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,o.inspect(t,this.inspectOpts)},e.enable(s())},function(t,e){t.exports=n("ZETi")},function(t,e){t.exports=n("MCLT")},function(t,e,n){"use strict";const i=n(210),o=n(211),a=r.env;let s;function l(t){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(!1===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(t&&!t.isTTY&&!0!==s)return 0;const e=s?1:0;if("win32"===r.platform){const t=i.release().split(".");return Number(r.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in a)||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const t=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)?1:"COLORTERM"in a?1:(a.TERM,e)}(t))}o("no-color")||o("no-colors")||o("color=false")?s=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:l,stdout:l(r.stdout),stderr:l(r.stderr)}},function(t,e){t.exports=n("PENG")},function(t,e,n){"use strict";t.exports=(t,e)=>{e=e||r.argv;const n=t.startsWith("-")?"":1===t.length?"-":"--",i=e.indexOf(n+t),o=e.indexOf("--");return-1!==i&&(-1===o||i=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(75);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(27),l=n.n(s),c=n(11),u=n.n(c),f=n(76),d=n.n(f);function p(t,e){return t(e={exports:{}},e.exports),e.exports}var h=p((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),m=p((function(t){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)})),v=(m.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),y=function(t){if(!v(t))throw TypeError(t+" is not an object!");return t},g=function(t){try{return!!t()}catch(t){return!0}},b=!g((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),_=h.document,w=v(_)&&v(_.createElement),x=!b&&!g((function(){return 7!=Object.defineProperty(w?_.createElement("div"):{},"a",{get:function(){return 7}}).a})),k=Object.defineProperty,C={f:b?Object.defineProperty:function(t,e,n){if(y(t),e=function(t,e){if(!v(t))return t;var n,r;if("function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(e),y(n),x)try{return k(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},O=b?function(t,e,n){return C.f(t,e,function(t,e){return{enumerable:!1,configurable:!0,writable:!0,value:e}}(0,n))}:function(t,e,n){return t[e]=n,t},E={}.hasOwnProperty,A=function(t,e){return E.call(t,e)},S=0,j=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++S+j).toString(36))},N=p((function(t){var e=h["__core-js_shared__"]||(h["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:m.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),P=N("native-function-to-string",Function.toString),L=p((function(t){var e=T("src"),n=(""+P).split("toString");m.inspectSource=function(t){return P.call(t)},(t.exports=function(t,r,i,o){var a="function"==typeof i;a&&(A(i,"name")||O(i,"name",r)),t[r]!==i&&(a&&(A(i,e)||O(i,e,t[r]?""+t[r]:n.join(String(r)))),t===h?t[r]=i:o?t[r]?t[r]=i:O(t,r,i):(delete t[r],O(t,r,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[e]||P.call(this)}))})),M=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},$=function(t,e,n){var r,i,o,a,s=t&$.F,l=t&$.G,c=t&$.S,u=t&$.P,f=t&$.B,d=l?h:c?h[e]||(h[e]={}):(h[e]||{}).prototype,p=l?m:m[e]||(m[e]={}),v=p.prototype||(p.prototype={});for(r in l&&(n=e),n)o=((i=!s&&d&&void 0!==d[r])?d:n)[r],a=f&&i?M(o,h):u&&"function"==typeof o?M(Function.call,o):o,d&&L(d,r,o,t&$.U),p[r]!=o&&O(p,r,a),u&&v[r]!=o&&(v[r]=o)};h.core=m,$.F=1,$.G=2,$.S=4,$.P=8,$.B=16,$.W=32,$.U=64,$.R=128;var q=$,R={}.toString,I=function(t){return R.call(t).slice(8,-1)},F=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==I(t)?t.split(""):Object(t)},D=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},B=function(t){return F(D(t))},z=Math.ceil,U=Math.floor,H=function(t){return isNaN(t=+t)?0:(t>0?U:z)(t)},K=Math.min,W=function(t){return t>0?K(H(t),9007199254740991):0},V=Math.max,G=Math.min,Z=function(t){return function(e,n,r){var i,o=B(e),a=W(o.length),s=function(t,e){return(t=H(t))<0?V(t+e,0):G(t,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Y=p((function(t){var e=N("wks"),n=h.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:T)("Symbol."+t))}).store=e})),X=Y("unscopables"),J=Array.prototype;null==J[X]&&O(J,X,{});var Q=Z(!0);q(q.P,"Array",{includes:function(t){return Q(this,t,arguments.length>1?arguments[1]:void 0)}}),J[X].includes=!0,m.Array.includes;var tt=N("keys"),et=Z(!1),nt=function(t){return tt[t]||(tt[t]=T(t))}("IE_PROTO"),rt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),it=Object.keys||function(t){return function(t,e){var n,r=B(t),i=0,o=[];for(n in r)n!=nt&&A(r,n)&&o.push(n);for(;e.length>i;)A(r,n=e[i++])&&(~et(o,n)||o.push(n));return o}(t,rt)},ot={f:Object.getOwnPropertySymbols},at={f:{}.propertyIsEnumerable},st=Object.assign,lt=!st||g((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=st({},t)[n]||Object.keys(st({},e)).join("")!=r}))?function(t,e){for(var n=Object(D(t)),r=arguments.length,i=1,o=ot.f,a=at.f;r>i;)for(var s,l=F(arguments[i++]),c=o?it(l).concat(o(l)):it(l),u=c.length,f=0;u>f;)s=c[f++],b&&!a.call(l,s)||(n[s]=l[s]);return n}:st;q(q.S+q.F,"Object",{assign:lt}),m.Object.assign;var ct=at.f,ut=function(t){return function(e){for(var n,r=B(e),i=it(r),o=i.length,a=0,s=[];o>a;)n=i[a++],b&&!ct.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},ft=ut(!0);q(q.S,"Object",{entries:function(t){return ft(t)}}),m.Object.entries;var dt=ut(!1);q(q.S,"Object",{values:function(t){return dt(t)}}),m.Object.values;var pt=Y("match"),ht=function(t,e,n){if(v(r=e)&&(void 0!==(i=r[pt])?i:"RegExp"==I(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,i;return String(D(t))},mt=Y("match"),vt="".startsWith;q(q.P+q.F*function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[mt]=!1,!"/./"[t](e)}catch(t){}}return!0}("startsWith"),"String",{startsWith:function(t){var e=ht(this,t,"startsWith"),n=W(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return vt?vt.call(e,r,n):e.slice(n,n+r.length)===r}}),m.String.startsWith;var yt=function(){function t(){}return t.register=function(t){this.database=t},t}(),gt=function(t,e){return(gt=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 bt(t,e){function n(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _t=function(){return(_t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e)return 1;if(t=a?l:l*("desc"===n[s]?-1:1)}return t.index-e.index}(t,e,n)}))},Tt=function(t){this.model=t},Nt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.isNullable=!1,i.value=n,i.mutator=r,i}return bt(e,t),e.prototype.nullable=function(){return this.isNullable=!0,this},e.prototype.mutate=function(t,e){var n=this.mutator||this.model.mutators()[e];return n?n(t):t},e}(Tt),Pt=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.value=n,i}return bt(e,t),e.prototype.make=function(t,e,n){var r=t=void 0!==t?t:this.value;return"function"==typeof t&&(r=t()),this.mutate(r,n)},e}(Nt),Lt=function(t){function e(e){return t.call(this,e,null)||this}return bt(e,t),e.prototype.make=function(t,e,n){return"number"==typeof t?t:null},e}(Nt),Mt=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"string"==typeof t?t:null===t&&this.isNullable?t:t+""},e}(Nt),$t=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:null===t&&this.isNullable?t:0},e}(Nt),qt=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return bt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){if(void 0===t)return this.value;if("boolean"==typeof t)return t;if("string"==typeof t){if(0===t.length)return!1;var e=parseInt(t,0);return!!isNaN(e)||!!e}return"number"==typeof t?!!t:!(null!==t||!this.isNullable)&&t},e}(Nt),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bt(e,t),e.prototype.getRelation=function(t,e,n){var r=t.newQuery(e);return n.forEach((function(t){t(r)})),r},e.prototype.getKeys=function(t,e){return t.reduce((function(t,n){return null===n[e]||void 0===n[e]?t:(t.push(n[e]),t)}),[])},e.prototype.mapSingleRelations=function(t,e){return t.reduce((function(t,n){return t[n[e]]=n,t}),{})},e.prototype.mapManyRelations=function(t,e){return t.reduce((function(t,n){var r=n[e];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e.prototype.isOneRelation=function(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t},e.prototype.isManyRelation=function(t){return!(!Array.isArray(t)||t.length<1)},e.prototype.makeManyRelation=function(t,e){var n=this;return this.isManyRelation(t)?t.filter((function(t){return n.isOneRelation(t)})).map((function(t){return new e(t)})):[]},e}(Tt),It=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity];r&&r[t]&&void 0===r[t][this.foreignKey]&&(e[this.localKey]||(e[this.localKey]=e.$id),r[t][this.foreignKey]=e[this.localKey])},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.foreignKey]]=n,t}),{})},e}(Rt),Ft=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.one(this.parent)},e.prototype.attach=function(t,e,n){void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.parent(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.parent.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.ownerKey,this.getKeys(e,this.foreignKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.foreignKey],o=null!==e?i[e]:null;t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.ownerKey]]=n,t}),{})},e}(Rt),Dt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;Array.isArray(t)&&t.forEach((function(t){var i=n[r.related.entity];i&&i[t]&&void 0===i[t][r.foreignKey]&&(i[t][r.foreignKey]=e[r.localKey])}))},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||[]}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.foreignKey];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e}(Rt),Bt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return bt(e,t),e.prototype.define=function(t){return t.many(this.parent)},e.prototype.attach=function(t,e,n){0!==t.length&&void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.parent)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.parent.entity,r);this.addConstraintForHasManyBy(o,e);var a=this.mapSingleRelations(o.get(),this.ownerKey);e.forEach((function(t){var e=i.getRelatedRecords(a,t[i.foreignKey]);t[n]=e}))},e.prototype.addConstraintForHasManyBy=function(t,e){var n=this,r=e.reduce((function(t,e){return t.concat(e[n.foreignKey])}),[]);t.where(this.ownerKey,r)},e.prototype.getRelatedRecords=function(t,e){return e.reduce((function(e,n){var r=t[n];return r&&e.push(r),e}),[])},e}(Rt),zt=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.through=l.model.relation(r),l.firstKey=i,l.secondKey=o,l.localKey=a,l.secondLocalKey=s,l}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.through.entity);this.addEagerConstraintForThrough(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapThroughRelations(s,o);e.forEach((function(t){var e=l[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForThrough=function(t,e){t.where(this.firstKey,this.getKeys(e,this.localKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.where(this.secondKey,this.getKeys(e,this.secondLocalKey))},e.prototype.mapThroughRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.secondKey);return t.reduce((function(t,e){var i=e[n.firstKey];t[i]||(t[i]=[]);var o=r[e[n.secondLocalKey]];return t[i]=t[i].concat(o),t}),{})},e}(Rt),Ut=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.pivot=l.model.relation(r),l.foreignPivotKey=i,l.relatedPivotKey=o,l.parentKey=a,l.relatedKey=s,l}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e){t.whereFk(this.foreignPivotKey,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedPivotKey))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.foreignPivotKey];t[i]||(t[i]=[]);var o=r[e[n.relatedPivotKey]];return o&&(t[i]=t[i].concat(o)),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return this.pivot.primaryKey instanceof Array==0?e:(Ot(e[t.entity],(function(t){var i=t[n];void 0!==i&&0!==i.length&&r.createPivotRecord(e,t,i)})),e)},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=t[r.related.entity][n][r.relatedKey],l=s+"_"+a,c=t[r.pivot.entity]?t[r.pivot.entity][l]:{};t[r.pivot.entity]=_t({},t[r.pivot.entity],((i={})[l]=_t({},c,((o={$id:l})[r.foreignPivotKey]=a,o[r.relatedPivotKey]=s,o)),i))}))},e}(Rt),Ht=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.id=n,i.type=r,i}return bt(e,t),e.prototype.define=function(t){var e=this;return t.union((function(t,n){return n[e.type]}))},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){if(!this.isOneRelation(t))return null;var r=e[this.type],i=this.model.relation(r);return i?new i(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getTypes(e).reduce((function(e,n){var o=i.getRelation(t,n,r);return e[n]=i.mapSingleRelations(o.get(),"$id"),e}),{});e.forEach((function(t){var e=t[i.id],r=t[i.type],a=o[r][e];t[n]=a||null}))},e.prototype.getTypes=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.type];return!t.includes(r)&&t.push(r),t}),[])},e}(Rt),Kt=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return bt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity]&&n[this.related.entity][t];r&&(r[this.id]=r[this.id]||e.$id,r[this.type]=r[this.type]||this.model.entity)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphOne(o,e,t.entity);var a=this.mapSingleRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||null}))},e.prototype.addEagerConstraintForMorphOne=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(Rt),Wt=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;if(Array.isArray(t)){var i=n[this.related.entity];t.forEach((function(t){var n=i[t];n[r.id]=n[r.id]||e.$id,n[r.type]=n[r.type]||r.model.entity}))}},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphMany(o,e,t.entity);var a=this.mapManyRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForMorphMany=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(Rt),Vt=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,t.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedId))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.id];t[i]||(t[i]=[]);var o=r[e[n.relatedId]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Ot(e[t.entity],(function(i){var o=t.query().newQuery(r.pivot.entity).where(r.id,i[r.parentKey]).where(r.type,t.entity).get().map((function(t){return t[r.parentKey]})),a=(i[n]||[]).filter((function(t){return!o.includes(t)}));Array.isArray(a)&&0!==a.length&&r.createPivotRecord(t,e,i,a)})),e},e.prototype.createPivotRecord=function(t,e,n,r){var i=this;r.forEach((function(r){var o,a,s=n[i.parentKey],l=e[i.related.entity][r][i.relatedKey],c=s+"_"+r+"_"+t.entity;e[i.pivot.entity]=_t({},e[i.pivot.entity],((o={})[c]=((a={$id:c})[i.relatedId]=l,a[i.id]=s,a[i.type]=t.entity,a),o))}))},e}(Rt),Gt=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return bt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,this.related.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.relatedId,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.id))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.relatedId];t[i]||(t[i]=[]);var o=r[e[n.id]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Ot(e[t.entity],(function(t){var i=t[n];Array.isArray(i)&&r.createPivotRecord(e,t,i)})),e},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=n+"_"+a+"_"+r.related.entity;t[r.pivot.entity]=_t({},t[r.pivot.entity],((i={})[s]=((o={$id:s})[r.relatedId]=a,o[r.id]=n,o[r.type]=r.related.entity,o),i))}))},e}(Rt),Zt=function(){function t(){}return t.serialize=function(t){var e=this,n=t.$fields();return Object.keys(n).reduce((function(n,r){var i=t[r];return n[r]=e.serializeValue(i),n}),{})},t.serializeValue=function(t){return t instanceof Xt?this.serializeItem(t):Array.isArray(t)?this.serializeCollection(t):t},t.serializeItem=function(t){return t.$toJson()},t.serializeCollection=function(t){return t.map((function(t){return t instanceof Xt?t.$toJson():t}))},t}(),Yt=function(){function t(){}return t.set=function(){this.value=""+this.prefix+this.count},t.get=function(){return this.value},t.increment=function(){return this.count++,this.set(),this.get()},t.count=0,t.prefix="_no_key_",t.value="",t}(),Xt=function(){function t(t){this.$id=null,this.$fill(t)}return t.fields=function(){return{}},t.getFields=function(){return this.cachedFields?this.cachedFields:(this.cachedFields=this.fields(),this.cachedFields)},t.attr=function(t,e){return new Pt(this,t,e)},t.string=function(t,e){return new Mt(this,t,e)},t.number=function(t,e){return new $t(this,t,e)},t.boolean=function(t,e){return new qt(this,t,e)},t.increment=function(){return new Lt(this)},t.hasOne=function(t,e,n){return new It(this,t,e,this.localKey(n))},t.belongsTo=function(t,e,n){return new Ft(this,t,e,this.relation(t).localKey(n))},t.hasMany=function(t,e,n){return new Dt(this,t,e,this.localKey(n))},t.hasManyBy=function(t,e,n){return new Bt(this,t,e,this.relation(t).localKey(n))},t.hasManyThrough=function(t,e,n,r,i,o){return new zt(this,t,e,n,r,this.localKey(i),this.relation(e).localKey(o))},t.belongsToMany=function(t,e,n,r,i,o){return new Ut(this,t,e,n,r,this.localKey(i),this.relation(t).localKey(o))},t.morphTo=function(t,e){return new Ht(this,t,e)},t.morphOne=function(t,e,n,r){return new Kt(this,t,e,n,this.localKey(r))},t.morphMany=function(t,e,n,r){return new Wt(this,t,e,n,this.localKey(r))},t.morphToMany=function(t,e,n,r,i,o,a){return new Vt(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.morphedByMany=function(t,e,n,r,i,o,a){return new Gt(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.mutators=function(){return{}},t.database=function(){return yt.database},t.store=function(){return this.database().store},t.namespace=function(t){return this.database().namespace+"/"+this.entity+"/"+t},t.getters=function(t){return this.store().getters[this.namespace(t)]},t.dispatch=function(t,e){return this.store().dispatch(this.namespace(t),e)},t.commit=function(t){this.store().commit(this.database().namespace+"/$mutate",{entity:this.entity,callback:t})},t.all=function(){return this.getters("all")()},t.find=function(t){return this.getters("find")(t)},t.findIn=function(t){return this.getters("findIn")(t)},t.query=function(){return this.getters("query")()},t.new=function(){return this.dispatch("new")},t.create=function(t){return this.dispatch("create",t)},t.insert=function(t){return this.dispatch("insert",t)},t.update=function(t){return this.dispatch("update",t)},t.insertOrUpdate=function(t){return this.dispatch("insertOrUpdate",t)},t.delete=function(t){return this.dispatch("delete",t)},t.deleteAll=function(){return this.dispatch("deleteAll")},t.id=function(t){var e=this.primaryKey;return"string"==typeof e?t[e]:e.map((function(e){return t[e]||Yt.increment()})).join("_")},t.localKey=function(t){return t||("string"==typeof this.primaryKey?this.primaryKey:"id")},t.relation=function(t){return"string"!=typeof t?t:this.database().model(t)},t.getAttributeClass=function(t){switch(t){case"increment":return Lt;default:throw Error('The attribute name "'+t+"\" doesn't exist.")}},t.getFieldsByAttribute=function(t){var e=this.getAttributeClass(t),n=this.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof e&&(t[r]=i),t}),{})},t.getIncrementFields=function(){return this.getFieldsByAttribute("increment")},t.hasIncrementFields=function(){return Object.keys(this.getIncrementFields()).length>0},t.pivotFields=function(){var t=[];return Ot(this.fields(),(function(e,n){var r;(e instanceof Ut||e instanceof Vt||e instanceof Gt)&&t.push(((r={})[n]=e,r))})),t},t.hasPivotFields=function(){return this.pivotFields().length>0},t.hydrate=function(t){return new this(t).$toJson()},t.prototype.$self=function(){return this.constructor},t.prototype.$fields=function(){return this.$self().getFields()},t.prototype.$store=function(){return this.$self().store()},t.prototype.$namespace=function(t){return this.$self().namespace(t)},t.prototype.$getters=function(t){return this.$self().getters(t)},t.prototype.$dispatch=function(t,e){return wt(this,void 0,void 0,(function(){return xt(this,(function(n){return[2,this.$self().dispatch(t,e)]}))}))},t.prototype.$all=function(){return this.$getters("all")()},t.prototype.$find=function(t){return this.$getters("find")(t)},t.prototype.$findIn=function(t){return this.$getters("findIn")(t)},t.prototype.$query=function(){return this.$getters("query")()},t.prototype.$create=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("create",t)]}))}))},t.prototype.$insert=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("insert",t)]}))}))},t.prototype.$update=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return Array.isArray(t)?[2,this.$dispatch("update",t)]:void 0!==t.where?[2,this.$dispatch("update",t)]:void 0===this.$self().id(t)?[2,this.$dispatch("update",{where:this.$id,data:t})]:[2,this.$dispatch("update",t)]}))}))},t.prototype.$insertOrUpdate=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return[2,this.$dispatch("insertOrUpdate",t)]}))}))},t.prototype.$save=function(){return wt(this,void 0,void 0,(function(){var t,e,n,r=this;return xt(this,(function(i){switch(i.label){case 0:return t=this.$self().getFields(),e=Object.keys(t).reduce((function(e,n){return t[n]instanceof Nt&&(e[n]=r[n]),e}),{}),[4,this.$dispatch("insertOrUpdate",{data:e})];case 1:return n=i.sent(),this.$fill(n[this.$self().entity][0]),[2,this]}}))}))},t.prototype.$delete=function(t){return wt(this,void 0,void 0,(function(){return xt(this,(function(e){return t?[2,this.$dispatch("delete",t)]:null===this.$id?[2,null]:[2,this.$dispatch("delete",this.$id)]}))}))},t.prototype.$deleteAll=function(){return wt(this,void 0,void 0,(function(){return xt(this,(function(t){return[2,this.$dispatch("deleteAll")]}))}))},t.prototype.$fill=function(t){var e=this,n=t||{},r=this.$fields();Object.keys(r).forEach((function(t){var i=r[t],o=n[t];e[t]=i.make(o,n,t)})),void 0!==n.$id&&(this.$id=n.$id)},t.prototype.$toJson=function(){return Zt.serialize(this)},t.prototype.toJSON=function(){return this.$toJson()},t.primaryKey="id",t.state={},t}();function Jt(t,e){for(var n=0;n1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]}(t),ue(e).map((function(e,s){return i(e,n,r,t,o,a)}))},de=function(t){function e(){return t.apply(this,arguments)||this}ne(e,t);var n=e.prototype;return n.normalize=function(t,e,n,r,i,o){var a=this;return ue(t).map((function(t,s){return a.normalizeValue(t,e,n,r,i,o)})).filter((function(t){return null!=t}))},n.denormalize=function(t,e){var n=this;return t&&t.map?t.map((function(t){return n.denormalizeValue(t,e)})):t},e}(se),pe=function(t,e,n,r,i,o,a){var s=ee({},e);return Object.keys(t).forEach((function(n){var r=t[n],l=i(e[n],e,n,r,o,a);null==l?delete s[n]:s[n]=l})),s},he=function t(e,n,r,i,o,a){return"object"==typeof e&&e?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(e,n,r,t,o,a):(Array.isArray(i)?fe:pe)(i,e,n,r,t,o,a):e},me={Array:de,Entity:ae,Object:function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var r,i=t[n];return ee({},e,((r={})[n]=i,r))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t.withAllRecursive(e-1)}))},t.setEagerLoad=function(t,e,n){void 0===n&&(n=null),t.load[e]||(t.load[e]=[]),n&&t.load[e].push(n)},t.parseWithRelations=function(t,e,n){var r=this,i=e[0];i.split("|").forEach((function(i){1!==e.length?r.setEagerLoad(t,i):r.setEagerLoad(t,i,n)})),1!==e.length&&(e.shift(),this.addNestedWiths(t,i,e,n))},t.addNestedWiths=function(t,e,n,r){this.setEagerLoad(t,e,(function(t){t.with(n.join("."),r)}))},t.eagerLoadRelations=function(t,e){var n=t.model.getFields();for(var r in t.load){var i=t.load[r],o=n[r];o instanceof Rt&&o.load(t,e,r,i)}},t}(),Ae=function(){function t(){}return t.has=function(t,e,n,r){this.setHas(t,e,"exists",n,r)},t.hasNot=function(t,e,n,r){this.setHas(t,e,"doesntExist",n,r)},t.whereHas=function(t,e,n){this.setHas(t,e,"exists",void 0,void 0,n)},t.whereHasNot=function(t,e,n){this.setHas(t,e,"doesntExist",void 0,void 0,n)},t.setHas=function(t,e,n,r,i,o){void 0===r&&(r=">="),void 0===i&&(i=1),void 0===o&&(o=null),"number"!=typeof r?t.have.push({relation:e,type:n,operator:r,count:i,constraint:o}):t.have.push({relation:e,type:n,operator:">=",count:r,constraint:o})},t.applyConstraints=function(t){if(0!==t.have.length){var e=t.newQuery();this.addHasWhereConstraints(t,e),this.addHasConstraints(t,e.get())}},t.addHasWhereConstraints=function(t,e){t.have.forEach((function(t){e.with(t.relation,t.constraint)}))},t.addHasConstraints=function(t,e){var n=this.getComparators(t),r=[];e.forEach((function(t){n.every((function(e){return e(t)}))&&r.push(t.$id)})),t.whereIdIn(r)},t.getComparators=function(t){var e=this;return t.have.map((function(t){return e.getComparator(t)}))},t.getComparator=function(t){var e=this,n=this.getCountComparator(t.operator);return function(r){var i=e.getRelationshipCount(r[t.relation]),o=n(i,t.count);return"exists"===t.type?o:!o}},t.getRelationshipCount=function(t){return Array.isArray(t)?t.length:t?1:0},t.getCountComparator=function(t){switch(t){case"=":return function(t,e){return t===e};case">":return function(t,e){return t>e};case">=":return function(t,e){return t>=e};case"<":return function(t,e){return t>0&&t0&&t<=e};default:return function(t,e){return t===e}}},t}(),Se=function(){function t(t){this.indexToBeDeleted=[],this.query=t}return t.on=function(t,e,n){void 0===n&&(n=!1);var r=this.lastHookId+1;return this.lastHookId=r,this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push({callback:e,once:n,uid:r}),r},t.off=function(t){var e=this,n=!1;return Object.keys(this.hooks).some((function(r){var i=e.hooks[r],o=i.findIndex((function(e){return e.uid===t}));return-1!==o&&(i.splice(o,1),n=!0),n})),n},t.prototype.self=function(){return this.constructor},t.prototype.getHook=function(t){return this.query.model[t]||null},t.prototype.getGlobalHook=function(t){return this.self().hooks[t]||null},t.prototype.has=function(t){return!!this.getHook(t)||!!this.getGlobalHook(t)},t.prototype.executeSelectHook=function(t,e){return this.has(t)?(e=this.executeLocalSelectHook(t,e),e=this.executeGlobalSelectHook(t,e)):e},t.prototype.executeLocalSelectHook=function(t,e){var n=this.getHook(t);return n?n(e,this.query.entity):e},t.prototype.executeGlobalSelectHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(!r)return e;var i=[];return r.forEach((function(t,r){var o=t.callback,a=t.once;e=o.call(n.query,e,n.query.entity),a&&i.push(r)})),i.reverse().forEach((function(t){r.splice(t,1)})),e},t.prototype.executeMutationHookOnRecords=function(t,e){var n=this;this.has(t)&&(Object.keys(e).forEach((function(r){!1===n.executeMutationHook(t,e[r])&&delete e[r]})),this.removeGlobalHook(t))},t.prototype.executeMutationHook=function(t,e){return!1!==this.executeLocalMutationHook(t,e)&&!1!==this.executeGlobalMutationHook(t,e)&&void 0},t.prototype.executeLocalMutationHook=function(t,e){var n=this.getHook(t);if(n)return n(e,this.query.entity)},t.prototype.executeGlobalMutationHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(r){var i=[];return r.forEach((function(t,r){i.push(t.callback.call(n.query,e,n.query.entity)),t.once&&n.indexToBeDeleted.push(r)})),!i.includes(!1)&&void 0}},t.prototype.removeGlobalHook=function(t){var e=this.getGlobalHook(t);e&&this.indexToBeDeleted.reverse().forEach((function(t){e.splice(t,1)}))},t.hooks={},t.lastHookId=0,t}(),je=function(){function t(t,e){this.idFilter=null,this.cancelIdFilter=!1,this.joinedIdFilter=null,this.wheres=[],this.have=[],this.orders=[],this.offsetNumber=0,this.limitNumber=Math.pow(2,53)-1,this.load={},this.rootState=t,this.state=t[e],this.entity=e,this.model=this.getModel(e),this.module=this.getModule(e),this.hook=new Se(this)}return t.database=function(){return yt.database},t.getModel=function(t){return this.database().model(t)},t.getModels=function(){return this.database().models()},t.getModule=function(t){return this.database().module(t)},t.getModules=function(){return this.database().modules()},t.deleteAll=function(t){var e=this,n=this.getModels();Ot(n,(function(n,r){t[r]&&new e(t,r).deleteAll()}))},t.on=function(t,e,n){return Se.on(t,e,n)},t.off=function(t){return Se.off(t)},t.prototype.self=function(){return this.constructor},t.prototype.newQuery=function(e){return e=e||this.entity,new t(this.rootState,e)},t.prototype.database=function(){return this.self().database()},t.prototype.getModel=function(t){var e=t||this.entity;return this.self().getModel(e)},t.prototype.getModels=function(){return this.self().getModels()},t.prototype.getModule=function(t){var e=t||this.entity;return this.self().getModule(e)},t.prototype.getModules=function(){return this.self().getModules()},t.prototype.all=function(){return this.get()},t.prototype.find=function(t){return this.item(this.state.data[t])},t.prototype.findIn=function(t){var e=this;return t.map((function(t){return e.state.data[t]})).filter((function(t){return t}))},t.prototype.get=function(){var t=this.select();return this.collect(t)},t.prototype.first=function(){var t=this.select();return this.item(t[0])},t.prototype.last=function(){var t=this.select();return this.item(t[t.length-1])},t.prototype.where=function(t,e){return this.isIdfilterable(t)&&this.setIdFilter(e),this.wheres.push({field:t,value:e,boolean:"and"}),this},t.prototype.orWhere=function(t,e){return this.cancelIdFilter=!0,this.wheres.push({field:t,value:e,boolean:"or"}),this},t.prototype.whereId=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereIdIn=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereFk=function(t,e){var n=Array.isArray(e)?e:[e];return t===this.model.primaryKey?(this.setJoinedIdFilter(n),this):(this.where(t,n),this)},t.prototype.isIdfilterable=function(t){return t===this.model.primaryKey&&!this.cancelIdFilter},t.prototype.setIdFilter=function(t){var e=this,n=Array.isArray(t)?t:[t];null!==this.idFilter?this.idFilter=new Set(n.filter((function(t){return e.idFilter.has(t)}))):this.idFilter=new Set(n)},t.prototype.setJoinedIdFilter=function(t){var e=this;null!==this.joinedIdFilter?this.joinedIdFilter=new Set(t.filter((function(t){return e.joinedIdFilter.has(t)}))):this.joinedIdFilter=new Set(t)},t.prototype.orderBy=function(t,e){return void 0===e&&(e="asc"),this.orders.push({field:t,direction:e}),this},t.prototype.offset=function(t){return this.offsetNumber=t,this},t.prototype.limit=function(t){return this.limitNumber=t,this},t.prototype.with=function(t,e){return void 0===e&&(e=null),Ee.with(this,t,e),this},t.prototype.withAll=function(){return Ee.withAll(this),this},t.prototype.withAllRecursive=function(t){return void 0===t&&(t=3),Ee.withAllRecursive(this,t),this},t.prototype.has=function(t,e,n){return Ae.has(this,t,e,n),this},t.prototype.hasNot=function(t,e,n){return Ae.hasNot(this,t,e,n),this},t.prototype.whereHas=function(t,e){return Ae.whereHas(this,t,e),this},t.prototype.whereHasNot=function(t,e){return Ae.whereHasNot(this,t,e),this},t.prototype.records=function(){var t=this;return this.finalizeIdFilter(),this.getIdsToLookup().map((function(e){var n=t.state.data[e];return n instanceof Xt?n:t.hydrate(n)}))},t.prototype.finalizeIdFilter=function(){this.cancelIdFilter&&null!==this.idFilter&&(this.where(this.model.primaryKey,Array.from(this.idFilter.values())),this.idFilter=null)},t.prototype.getIdsToLookup=function(){var t=this;return this.idFilter&&this.joinedIdFilter?Array.from(this.idFilter.values()).filter((function(e){return t.joinedIdFilter.has(e)})):this.idFilter||this.joinedIdFilter?Array.from((this.idFilter||this.joinedIdFilter).values()):Object.keys(this.state.data)},t.prototype.select=function(){Ae.applyConstraints(this);var t=this.records();return t=this.hook.executeSelectHook("beforeSelect",t),t=this.filterWhere(t),t=this.hook.executeSelectHook("afterWhere",t),t=this.filterOrderBy(t),t=this.hook.executeSelectHook("afterOrderBy",t),t=this.filterLimit(t),this.hook.executeSelectHook("afterLimit",t)},t.prototype.filterWhere=function(t){return Oe.where(this,t)},t.prototype.filterOrderBy=function(t){return Oe.orderBy(this,t)},t.prototype.filterLimit=function(t){return Oe.limit(this,t)},t.prototype.count=function(){return this.get().length},t.prototype.max=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.max.apply(Math,e)},t.prototype.min=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.min.apply(Math,e)},t.prototype.sum=function(t){return this.get().reduce((function(e,n){return"number"==typeof n[t]&&(e+=n[t]),e}),0)},t.prototype.item=function(t){if(!t)return null;if(Object.keys(this.load).length>0){t=new this.model(t);var e=this.hook.executeSelectHook("beforeRelations",[t]);t=e[0],Ee.eagerLoadRelations(this,[t]),t=(e=this.hook.executeSelectHook("afterRelations",[t]))[0]}return t},t.prototype.collect=function(t){var e=this;return t.length<1?[]:(Object.keys(this.load).length>0&&(t=t.map((function(t){return new e.model(t)})),t=this.hook.executeSelectHook("beforeRelations",t),Ee.eagerLoadRelations(this,t),t=this.hook.executeSelectHook("afterRelations",t)),t)},t.prototype.new=function(){var t=(new this.model).$toJson();return this.insert(t,{})[this.entity][0]},t.prototype.create=function(t,e){return this.persist(t,"create",e)},t.prototype.createMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=n})),this.map(n)},t.prototype.insert=function(t,e){return this.persist(t,"insert",e)},t.prototype.insertMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=_t({},e.state.data,n)})),this.map(n)},t.prototype.update=function(t,e,n){if(Array.isArray(t))return this.persist(t,"update",n);if("function"==typeof t){if(!e)throw new Error("You must specify `where` to update records by specifying `data` as a closure.");return"function"==typeof e?this.updateByCondition(t,e):this.updateById(t,e)}if("function"==typeof e)return this.updateByCondition(t,e);if(!e)return this.persist(t,"update",n);if(Array.isArray(this.model.primaryKey))throw new Error("\n You can't specify `where` value as `string` or `number` when you\n have a composite key defined in your model. Please include composite\n keys to the `data` fields.\n ");return this.updateById(t,e)},t.prototype.updateMany=function(t){var e=this.combine(t);return this.commitUpdate(e)},t.prototype.updateById=function(t,e){var n;e="number"==typeof e?e.toString():e;var r=this.state.data[e];if(!r)return null;var i=((n={})[e]=this.processUpdate(t,r),n);return this.commitUpdate(i),i[e]},t.prototype.updateByCondition=function(t,e){var n=this,r=Object.keys(this.state.data).reduce((function(r,i){var o=n.state.data[i];return e(o)?(r[i]=n.processUpdate(t,o),r):r}),{});return this.commitUpdate(r)},t.prototype.processUpdate=function(t,e){return"function"==typeof t?(t(e),e):this.hydrate(_t({},e,t))},t.prototype.commitUpdate=function(t){var e=this;return t=this.updateIndexes(t),this.commit("update",t,(function(){e.state.data=_t({},e.state.data,t)})),this.map(t)},t.prototype.updateIndexes=function(t){var e=this;return Object.keys(t).reduce((function(t,n){var r=t[n],i=String(e.model.id(r));return n!==i&&(r.$id=i,t[i]=r,delete t[n]),t}),t)},t.prototype.insertOrUpdate=function(t,e){return this.persist(t,"insertOrUpdate",e)},t.prototype.insertOrUpdateMany=function(t){var e=this,n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];e.state.data[i]?r[i]=o:n[i]=o})),this.insertMany(n).concat(this.updateMany(r))},t.prototype.persist=function(t,e,n){var r=this;return t=this.normalize(t),Ct(t)?("create"===e&&(this.state.data={}),{}):Object.keys(t).reduce((function(i,o){var a=r.newQuery(o)[r.getPersistMethod(o,e,n)+"Many"](t[o]);return a.length>0&&(i[o]=a),i}),{})},t.prototype.getPersistMethod=function(t,e,n){return n.create&&n.create.includes(t)?"create":n.insert&&n.insert.includes(t)?"insert":n.update&&n.update.includes(t)?"update":n.insertOrUpdate&&n.insertOrUpdate.includes(t)?"insertOrUpdate":e},t.prototype.delete=function(t){return"function"==typeof t?this.deleteByCondition(t):this.deleteById(t)},t.prototype.deleteById=function(t){var e;t="number"==typeof t?t.toString():t;var n=this.state.data[t];if(!n)return null;var r=((e={})[t]=n,e);return this.commitDelete(r)[0]},t.prototype.deleteByCondition=function(t){var e=this,n=Object.keys(this.state.data).reduce((function(n,r){var i=e.state.data[r];return t(i)?(n[r]=i,n):n}),{});return this.commitDelete(n)},t.prototype.deleteAll=function(){var t=this.state.data;this.commitDelete(t)},t.prototype.commitDelete=function(t){var e=this;return this.commit("delete",t,(function(){var n=Object.keys(t);e.state.data=Object.keys(e.state.data).reduce((function(t,r){return n.includes(r)||(t[r]=e.state.data[r]),t}),{})})),this.map(t)},t.prototype.normalize=function(t){return we.normalize(this,t)},t.prototype.hydrate=function(t){return new(0,this.model)(t)},t.prototype.hydrateMany=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=t[r];return n[r]=e.hydrate(i),n}),{})},t.prototype.combine=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=e.state.data[r];if(!i)return n;var o=t[r];return n[r]=e.hydrate(_t({},i,o)),n}),{})},t.prototype.map=function(t){return Object.keys(t).map((function(e){return t[e]}))},t.prototype.commit=function(t,e,n){var r=""+t.charAt(0).toUpperCase()+t.slice(1);this.hook.executeMutationHookOnRecords("before"+r,e),n(),this.hook.executeMutationHookOnRecords("after"+r,e)},t}(),Te={query:function(t,e,n,r){return function(){return r[t.$connection+"/query"](t.$name)}},all:function(t,e,n,r){return function(){return r[t.$connection+"/all"](t.$name)}},find:function(t,e,n,r){return function(e){return r[t.$connection+"/find"](t.$name,e)}},findIn:function(t,e,n,r){return function(e){return r[t.$connection+"/findIn"](t.$name,e)}}},Ne={new:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/new",{entity:n},{root:!0})},create:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/create",_t({},e,{entity:r}),{root:!0})},insert:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insert",_t({},e,{entity:r}),{root:!0})},update:function(t,e){var n=t.state,r=n.$name;return Array.isArray(e)?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):void 0===e.data?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):t.dispatch(n.$connection+"/update",_t({entity:r},e),{root:!0})},insertOrUpdate:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insertOrUpdate",_t({entity:r},e),{root:!0})},delete:function(t,e){var n=t.state,r=n.$name,i="object"==typeof e?e.where:e;return t.dispatch(n.$connection+"/delete",{entity:r,where:i},{root:!0})},deleteAll:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/deleteAll",{entity:n},{root:!0})}},Pe={query:function(t){return function(e){return new je(t,e)}},all:function(t){return function(e){return new je(t,e).all()}},find:function(t){return function(e,n){return new je(t,e).find(n)}},findIn:function(t){return function(e,n){return new je(t,e).findIn(n)}}},Le={new:function(t,e){var n={data:{}};return t.commit("new",_t({},e,{result:n})),n.data},create:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("create",_t({},e,{result:n})),[2,n.data]}))}))},insert:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("insert",_t({},e,{result:n})),[2,n.data]}))}))},update:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("update",_t({},e,{result:n})),[2,n.data]}))}))},insertOrUpdate:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("insertOrUpdate",_t({},e,{result:n})),[2,n.data]}))}))},delete:function(t,e){return wt(this,void 0,void 0,(function(){var n;return xt(this,(function(r){return n={data:{}},t.commit("delete",_t({},e,{result:n})),[2,n.data]}))}))},deleteAll:function(t,e){return wt(this,void 0,void 0,(function(){return xt(this,(function(n){return e&&e.entity?(t.commit("deleteAll",{entity:e.entity}),[2]):(t.commit("deleteAll"),[2])}))}))}},Me=function(){function t(){}return t.createPersistOptions=function(t){return{create:t.create,insert:t.insert,update:t.update,insertOrUpdate:t.insertOrUpdate}},t}(),$e={$mutate:function(t,e){e.callback(t[e.entity])},new:function(t,e){var n=e.entity;e.result.data=new je(t,n).new()},create:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).create(r,i)},insert:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).insert(r,i)},update:function(t,e){var n=e.entity,r=e.data,i=e.where||null,o=Me.createPersistOptions(e);e.result.data=new je(t,n).update(r,i,o)},insertOrUpdate:function(t,e){var n=e.entity,r=e.data,i=Me.createPersistOptions(e);e.result.data=new je(t,n).insertOrUpdate(r,i)},delete:function(t,e){var n=e.entity,r=e.where;e.result.data=new je(t,n).delete(r)},deleteAll:function(t,e){e&&e.entity?new je(t,e.entity).deleteAll():je.deleteAll(t)}},qe=function(){function t(){}return t.create=function(t){return function(e,n,r){var i=t.id(e);return null==i||""===i?Yt.get():i}},t}(),Re=function(){function t(){}return t.create=function(t){var e=this;return function(n,r,i){var o=e.getId(t,n);return _t({},n,{$id:o})}},t.getId=function(t,e){var n=t.id(e);return null==n||""===n?Yt.increment():n},t}(),Ie=function(){function t(t){var e=this;this.schemas={},this.model=t;var n=t.database().models();Object.keys(n).forEach((function(t){e.one(n[t])}))}return t.create=function(t){return new this(t).one()},t.prototype.one=function(t){if(t=t||this.model,this.schemas[t.entity])return this.schemas[t.entity];var e=new me.Entity(t.entity,{},{idAttribute:qe.create(t),processStrategy:Re.create(t)});this.schemas[t.entity]=e;var n=this.definition(t);return e.define(n),e},t.prototype.many=function(t){return new me.Array(this.one(t))},t.prototype.union=function(t){return new me.Union(this.schemas,t)},t.prototype.definition=function(t){var e=this,n=t.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof Rt&&(t[r]=i.define(e)),t}),{})},t}(),Fe=function(){function t(){}return t.create=function(t,e,n){var r={namespaced:!0,state:{$name:t},getters:Pe,actions:Le,mutations:$e,modules:{}};return this.createModules(r,t,e,n)},t.createModules=function(t,e,n,r){var i=this;return Object.keys(r).forEach((function(o){var a=n[o],s=r[o];t.modules[o]={namespaced:!0},t.modules[o].state=i.createState(e,o,a,s),t.getters[o]=function(t,e,n,r){return function(){return e.query(o)}},t.modules[o].getters=_t({},Te,s.getters),t.modules[o].actions=_t({},Ne,s.actions),t.modules[o].mutations=s.mutations||{}})),t},t.createState=function(t,e,n,r){var i="function"==typeof n.state?n.state():n.state,o="function"==typeof r.state?r.state():r.state;return _t({},i,o,{$connection:t,$name:e,data:{}})},t}(),De={axios:void 0,baseURL:"http://localhost:3000",url:"/",method:"get",access_token:"",headers:{"Content-Type":"application/json",Accept:"application/json"},data:{},timeout:0,withCredentials:!1,responseType:"json",responseEncoding:"utf8",validateStatus:function(t){return t>=200&&t<300},maxRedirects:5,socketPath:null,proxy:{},onRequest:function(t,e){return t},onResponse:function(t,e){return t.data},onUnauthorised:function(t){},onNotFound:function(t){},onServerError:function(t){},onGenericError:function(t){},onValidationError:function(t){},onError:function(t,e){var n=t.response,r={401:this.onUnauthorised,404:this.onNotFound,422:this.onValidationError,500:this.onServerError};return n&&n.status in r?r[n.status](t):this.onGenericError(t),Promise.reject(t)}},Be={database:new(function(){function t(){this.entities=[],this.schemas={}}return t.prototype.start=function(t,e){this.store=t,this.namespace=e,this.registerModules(),this.createSchema()},t.prototype.register=function(t,e){void 0===e&&(e={}),this.entities.push({name:t.entity,model:t,module:e})},t.prototype.model=function(t){return this.models()[t]},t.prototype.models=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.model,t}),{})},t.prototype.module=function(t){return this.modules()[t]},t.prototype.modules=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.module,t}),{})},t.prototype.registerModules=function(){var t=Fe.create(this.namespace,this.models(),this.modules());this.store.registerModule(this.namespace,t)},t.prototype.createSchema=function(){var t=this;this.entities.forEach((function(e){t.schemas[e.name]=Ie.create(e.model)}))},t}()),http:De},ze={getters:{loading:function(t){return t.loading},errors:function(t){return t.errors}},mutations:{onRequest:function(t){t.loading=!0,t.errors=[]},onError:function(t,e){t.loading=!1,t.errors=e.data},onSuccess:function(t){t.loading=!1,t.errors=[]}},state:{loading:!1,errors:[]}},Ue={http:De,methods:{$fetch:{name:"fetch",http:{url:"",method:"get"}},$get:{name:"get",http:{url:"/:id",method:"get"}},$create:{name:"create",alias:["insert"],http:{url:"",method:"post"}},$update:{name:"update",http:{url:"/:id",method:"put"}},$delete:{name:"delete",http:{url:"/:id",method:"delete"}}}},He=function(){function t(e,n){if(i()(this,t),this.components=e,this.options=u()({},Be,n),this.database=n.database,!n.database)throw new Error("database option is required to initialise!")}return a()(t,[{key:"getModelFromState",value:function(t){return d()(this.database.entities,{name:t.$name}).model}}],[{key:"setup",value:function(e,n){return this.instance=new t(e,n),this.instance}},{key:"getInstance",value:function(){return this.instance}}]),t}(),Ke=n(77),We=n.n(Ke),Ve=n(78),Ge=n.n(Ve),Ze=function(){function t(){i()(this,t)}return a()(t,null,[{key:"transformModule",value:function(t){return u()({},ze,t)}},{key:"transformModel",value:function(t){var e=He.getInstance();return Ue.http=u()({},Ue.http,e.options.http),t.methodConf=u()({},Ue,t.methodConf),t.methodConf.http.url="/"===t.methodConf.http.url?"/".concat(t.entity):t.methodConf.http.url,t.getFields=function(){return t.cachedFields||(t.cachedFields=u()({},{$id:t.attr(void 0),$isUpdating:t.boolean(!1),$updateErrors:t.attr([]),$isDeleting:t.boolean(!1),$deleteErrors:t.attr([])},t.fields())),t.cachedFields},t}},{key:"transformParams",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="".concat(e.methodConf.http.url).concat(e.methodConf.methods[t].http.url),i=l()(r.match(/(\/?)(\:)([A-z]*)/gm),(function(t){return t.replace("/","")}));return We()(i,(function(t){var e=Ge()(n.params,t.replace(":",""))?n.params[t.replace(":","")]:"";r=r.replace(t,e).replace("//","/")})),n.query&&(r+="?".concat(Object.keys(n.query).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n.query[t]))})).join("&"))),r}},{key:"getMethod",value:function(t,e,n){return e.methodConf.methods[t].http.method||n}}]),t}(),Ye=n(0),Xe=n.n(Ye),Je=n(3),Qe=n.n(Je),tn=n(7),en=n.n(tn),nn=n(8),rn=n.n(nn),on=n(9),an=n.n(on),sn=n(79),ln=n.n(sn),cn=function(){function t(e){var n=this;return i()(this,t),this.instance=e.axios||ln.a.create(e),this.setAuthentication(e.access_token),this.instance.interceptors.request.use((function(t){return e.onRequest(t,n.instance)}),(function(t){return e.onError(t,n.instance)})),this.instance.interceptors.response.use((function(t){return e.onResponse(t,n.instance)}),(function(t){return e.onError(t,n.instance)})),this.instance}return a()(t,[{key:"setAuthentication",value:function(t){if(t){var e="function"==typeof t?t():t;this.instance.defaults.headers.common.Authorization="Bearer ".concat(e)}}},{key:"head",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.head(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"get",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.get(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"post",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.post(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"patch",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.patch(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"put",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]?i[2]:{},t.abrupt("return",this.instance.put(e,n,r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"delete",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.abrupt("return",this.instance.delete(e,n));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),un=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.commit,i=f.length>1&&void 0!==f[1]?f[1]:{},o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$fetch",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$fetch",a,"get"),u=l[c](s),this.onRequest(r),t.prev=9,t.t0=this,t.t1=r,t.t2=a,t.next=15,u;case 15:return t.t3=t.sent,t.next=18,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 18:t.next=23;break;case 20:t.prev=20,t.t4=t.catch(9),this.onError(r,t.t4);case 23:return t.abrupt("return",u);case 24:case"end":return t.stop()}}),t,this,[[9,20]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),fn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.commit,i=f.length>1&&void 0!==f[1]?f[1]:{},o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$get",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$get",a,"get"),u=l[c](s),this.onRequest(r),t.prev=9,t.t0=this,t.t1=r,t.t2=a,t.next=15,u;case 15:return t.t3=t.sent,t.next=18,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 18:t.next=23;break;case 20:t.prev=20,t.t4=t.catch(9),this.onError(r,t.t4);case 23:return t.abrupt("return",u);case 24:case"end":return t.stop()}}),t,this,[[9,20]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),dn=n(17),pn=n.n(dn),hn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u,f=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state,r=e.commit,(i=f.length>1&&void 0!==f[1]?f[1]:{}).data&&"object"===pn()(i)){t.next=4;break}throw new TypeError("You must include a data object in the params to send a POST request",i);case 4:return o=He.getInstance(),a=o.getModelFromState(n),s=Ze.transformParams("$create",a,i),l=new cn(a.methodConf.http),c=Ze.getMethod("$create",a,"post"),u=l[c](s,i.data),this.onRequest(r),t.prev=11,t.t0=this,t.t1=r,t.t2=a,t.next=17,u;case 17:return t.t3=t.sent,t.next=20,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 20:t.next=25;break;case 22:t.prev=22,t.t4=t.catch(11),this.onError(r,t.t4);case 25:return t.abrupt("return",u);case 26:case"end":return t.stop()}}),t,this,[[11,22]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t){t("onRequest")}},{key:"onSuccess",value:function(t,e,n){return t("onSuccess"),e.insertOrUpdate({data:n})}},{key:"onError",value:function(t,e){t("onError",e)}}]),e}(Ze),mn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state,e.commit,(r=u.length>1&&void 0!==u[1]?u[1]:{}).data&&"object"===pn()(r)){t.next=4;break}throw new TypeError("You must include a data object in the params to send a POST request",r);case 4:return i=He.getInstance(),o=i.getModelFromState(n),a=Ze.transformParams("$update",o,r),s=new cn(o.methodConf.http),l=Ze.getMethod("$update",o,"put"),c=s[l](a,r.data),t.next=12,this.onRequest(o,r);case 12:return t.prev=12,t.t0=this,t.t1=o,t.t2=r,t.next=18,c;case 18:return t.t3=t.sent,t.next=21,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 21:t.next=27;break;case 23:return t.prev=23,t.t4=t.catch(12),t.next=27,this.onError(o,r,t.t4);case 27:return t.abrupt("return",c);case 28:case"end":return t.stop()}}),t,this,[[12,23]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t,e){return t.update({where:e.params.id,data:{$isUpdating:!0,$updateErrors:[]}})}},{key:"onSuccess",value:function(t,e,n){return t.update({where:e.params.id||n.id,data:u()({},n,{$isUpdating:!1,$updateErrors:[]})})}},{key:"onError",value:function(t,e,n){return t.update({where:e.params.id,data:{$isUpdating:!1,$updateErrors:n}})}}]),e}(Ze),vn=function(t){function e(){return i()(this,e),en()(this,rn()(e).apply(this,arguments))}return an()(e,t),a()(e,null,[{key:"call",value:function(){var t=Qe()(Xe.a.mark((function t(e){var n,r,i,o,a,s,l,c,u=arguments;return Xe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,e.commit,r=u.length>1&&void 0!==u[1]?u[1]:{},i=He.getInstance(),o=i.getModelFromState(n),a=Ze.transformParams("$delete",o,r),s=new cn(o.methodConf.http),l=Ze.getMethod("$delete",o,"delete"),c=s[l](a),t.next=10,this.onRequest(o,r);case 10:return t.prev=10,t.t0=this,t.t1=o,t.t2=r,t.next=16,c;case 16:return t.t3=t.sent,t.next=19,t.t0.onSuccess.call(t.t0,t.t1,t.t2,t.t3);case 19:t.next=25;break;case 21:return t.prev=21,t.t4=t.catch(10),t.next=25,this.onError(o,r,t.t4);case 25:return t.abrupt("return",c);case 26:case"end":return t.stop()}}),t,this,[[10,21]])})));return function(e){return t.apply(this,arguments)}}()},{key:"onRequest",value:function(t,e){return t.update({where:e.params.id,data:{$isDeleting:!0,$deleteErrors:[]}})}},{key:"onSuccess",value:function(t,e,n){return t.delete({where:e.params.id||n.id})}},{key:"onError",value:function(t,e,n){return t.update({where:e.params.id,data:{$isDeleting:!1,$deleteErrors:n}})}}]),e}(Ze),yn=function(){function t(e,n){i()(this,t),He.setup(e,n),this.setupActions(),this.setupModels()}return a()(t,[{key:"setupActions",value:function(){var t=He.getInstance();t.components.Actions.$fetch=un.call.bind(un),t.components.Actions.$get=fn.call.bind(fn),t.components.Actions.$create=hn.call.bind(hn),t.components.Actions.$update=mn.call.bind(mn),t.components.Actions.$delete=vn.call.bind(vn)}},{key:"setupModels",value:function(){var t=He.getInstance();l()(t.database.entities,(function(t){return t.module=Ze.transformModule(t.module),t.model=Ze.transformModel(t.model),t})),t.components.Model.$fetch=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$fetch",t)},t.components.Model.$get=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$get",t)},t.components.Model.$create=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$create",t)},t.components.Model.$update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$update",t)},t.components.Model.$delete=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.dispatch("$delete",t)}}}]),t}();n.d(e,"default",(function(){return gn}));var gn=function(){function t(){i()(this,t)}return a()(t,null,[{key:"install",value:function(t,e){return new yn(t,e)}}]),t}()}])}).call(this,n("yLpj"),n("8oxB"),n("tjlA").Buffer)},Wncm:function(t,e,n){"use strict";var r=n("IH57");n.n(r).a},Xhqo:function(t,e,n){"use strict";var r=n("hwdV").Buffer,i=n(2);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},XuX8:function(t,e,n){t.exports=n("INkZ")},Xwsg:function(t,e,n){var r=n("/pct");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;ne.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}u.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||s.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},u.prototype.write=function(t,e,n,r,i,o,a){return this._write(!0,t,e,n,r,i,o,a)},u.prototype.writeSync=function(t,e,n,r,i,o,a){return this._write(!1,t,e,n,r,i,o,a)},u.prototype._write=function(n,o,a,s,l,c,u,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==e.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==e.Z_NO_FLUSH&&o!==e.Z_PARTIAL_FLUSH&&o!==e.Z_SYNC_FLUSH&&o!==e.Z_FULL_FLUSH&&o!==e.Z_FINISH&&o!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=t.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=u,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var d=this;return r.nextTick((function(){d._process(),d._after()})),this},u.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},u.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},u.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},u.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},u.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},u.prototype.init=function(t,n,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(t>=8&&t<=15,"invalid windowBits"),i(n>=-1&&n<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===e.Z_FILTERED||o===e.Z_HUFFMAN_ONLY||o===e.Z_RLE||o===e.Z_FIXED||o===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,t,r,o,a),this._setDictionary()},u.prototype.params=function(){throw new Error("deflateParams Not supported")},u.prototype.reset=function(){this._reset(),this._setDictionary()},u.prototype._init=function(t,n,r,i,l){switch(this.level=t,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=l,this.write_in_progress=!1,this.init_done=!0},u.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},u.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=u}).call(this,n("tjlA").Buffer,n("8oxB"))},"aET+":function(t,e,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),c=null,u=0,f=[],d=n("9tPo");function p(t,e){for(var n=0;n=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=u++;n=c||(c=y(e)),r=x.bind(null,n,a,!1),i=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),m(t,e),e}(e),r=C.bind(null,n,e),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=k.bind(null,n),i=function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],i=0;i=1&&0===$[E];E--);if(A>E&&(A=E),0===E)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(O=1;O0&&(0===t||1!==E))return-1;for(q[1]=0,k=1;k<15;k++)q[k+1]=q[k]+$[k];for(C=0;C852||2===t&&N>592)return 1;for(;;){b=k-j,f[C]g?(_=R[I+f[C]],w=L[M+f[C]]):(_=96,w=0),p=1<>j)+(h-=p)]=b<<24|_<<16|w|0}while(0!==h);for(p=1<>=1;if(0!==p?(P&=p-1,P+=p):P=0,C++,0==--$[k]){if(k===E)break;k=e[n+f[C]]}if(k>A&&(P&v)!==m){for(0===j&&(j=A),y+=O,T=1<<(S=k-j);S+j852||2===t&&N>592)return 1;c[m=P&v]=A<<24|S<<16|y-u|0}}return 0!==P&&(c[y+P]=k-j<<24|64<<16|0),d.bits=A,0}},bXjK:function(t,e,n){!function(t){"use strict";t.defineOption("fullScreen",!1,(function(e,n,r){r==t.Init&&(r=!1),!r!=!n&&(n?function(t){var e=t.getWrapperElement();t.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:e.style.width,height:e.style.height},e.style.width="",e.style.height="auto",e.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",t.refresh()}(e):function(t){var e=t.getWrapperElement();e.className=e.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=t.state.fullScreenRestore;e.style.width=n.width,e.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),t.refresh()}(e))}))}(n("VrN/"))},dUo6:function(t,e,n){"use strict";var r=n("A8dI");n.n(r).a},dla9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\nhtml {\n scroll-behavior: smooth;\n}\n",""])},dlfb:function(t,e,n){"use strict";var r=n("8E+E");n.n(r).a},"eA/Y":function(t,e,n){"use strict";t.exports=o;var r=n("J78i"),i=n("Onz0");function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n("P7XM"),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},ewDg:function(t,e,n){!function(t){"use strict";function e(t){for(var e={},n=0;n*\/]/.test(n)?w(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):t.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(t.current().toLowerCase())&&(e.tokenize=C),w("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),w("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):t.match(/^\w+-/)?w("meta","meta"):void 0}function k(t){return function(e,n){for(var r,i=!1;null!=(r=e.next());){if(r==t&&!i){")"==t&&e.backUp(1);break}i=!i&&"\\"==r}return(r==t||!i&&")"!=t)&&(n.tokenize=null),w("string","string")}}function C(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=k(")"),w(null,"(")}function O(t,e,n){this.type=t,this.indent=e,this.prev=n}function E(t,e,n,r){return t.context=new O(n,e.indentation()+(!1===r?0:a),t.context),n}function A(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function S(t,e,n){return N[n.context.type](t,e,n)}function j(t,e,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return S(t,e,n)}function T(t){var e=t.current().toLowerCase();o=y.hasOwnProperty(e)?"atom":v.hasOwnProperty(e)?"keyword":"variable"}var N={top:function(t,e,n){if("{"==t)return E(n,e,"block");if("}"==t&&n.context.prev)return A(n);if(_&&/@component/i.test(t))return E(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return E(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return E(n,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return n.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return E(n,e,"at");if("hash"==t)o="builtin";else if("word"==t)o="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return E(n,e,"interpolation");if(":"==t)return"pseudo";if(g&&"("==t)return E(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return d.hasOwnProperty(r)?(o="property","maybeprop"):p.hasOwnProperty(r)?(o="string-2","maybeprop"):g?(o=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==t?"block":g||"hash"!=t&&"qualifier"!=t?N.top(t,e,n):(o="error","block")},maybeprop:function(t,e,n){return":"==t?E(n,e,"prop"):S(t,e,n)},prop:function(t,e,n){if(";"==t)return A(n);if("{"==t&&g)return E(n,e,"propBlock");if("}"==t||"{"==t)return j(t,e,n);if("("==t)return E(n,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)T(e);else if("interpolation"==t)return E(n,e,"interpolation")}else o+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?A(n):"word"==t?(o="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?j(t,e,n):")"==t?A(n):"("==t?E(n,e,"parens"):"interpolation"==t?E(n,e,"interpolation"):("word"==t&&T(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(o="variable-3",n.context.type):S(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&l.hasOwnProperty(e.current())?(o="tag",n.context.type):N.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return E(n,e,"atBlock_parens");if("}"==t||";"==t)return j(t,e,n);if("{"==t)return A(n)&&E(n,e,g?"block":"top");if("interpolation"==t)return E(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"string-2":y.hasOwnProperty(r)?"atom":v.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?j(t,e,n):"{"==t?A(n)&&E(n,e,g?"block":"top",!1):("word"==t&&(o="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?A(n):"{"==t||"}"==t?j(t,e,n,2):N.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?E(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):S(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,A(n)):"word"==t?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,n){return"word"==t?(o="variable","keyframes"):"{"==t?E(n,e,"top"):S(t,e,n)},at:function(t,e,n){return";"==t?A(n):"{"==t||"}"==t?j(t,e,n):("word"==t?o="tag":"hash"==t&&(o="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?A(n):"{"==t||";"==t?j(t,e,n):("word"==t?o="variable":"variable"!=t&&"("!=t&&")"!=t&&(o="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new O(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||x)(t,e);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(e.state=N[e.state](i,t,e)),o},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=e(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=e(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=e(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=e(u),d=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],p=e(d),h=e(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],y=e(v),g=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=e(g),_=n.concat(i).concat(a).concat(l).concat(u).concat(d).concat(v).concat(g);function w(t,e){for(var n,r=!1;null!=(n=t.next());){if(r&&"/"==n){e.tokenize=null;break}r="*"==n}return["comment","comment"]}t.registerHelper("hintWords","css",_),t.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:y,valueKeywords:b,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:y,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:y,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:y,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css",helperType:"gss"})}(n("VrN/"))},"f6e/":function(t,e){t.exports='\n \n'},fXKp:function(t,e,n){"use strict";var r=n("hwdV").Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=f,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},frGm:function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o,a,s,l,c,u,f,d,p,h,m,v,y,g,b,_,w,x,k,C,O,E;n=t.state,r=t.next_in,O=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,v=n.distcode,y=(1<>>=_=b>>>24,h-=_,0===(_=b>>>16&255))E[o++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=m[(65535&b)+(p&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(_&=15)&&(h<_&&(p+=O[r++]<>>=_,h-=_),h<15&&(p+=O[r++]<>>=_=b>>>24,h-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=v[(65535&b)+(p&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,h<(_&=15)&&(p+=O[r++]<l){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=_,h-=_,x>(_=o-a)){if((_=x-_)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,C=d,0===f){if(k+=c-_,_2;)E[o++]=C[k++],E[o++]=C[k++],E[o++]=C[k++],w-=3;w&&(E[o++]=C[k++],w>1&&(E[o++]=C[k++]))}else{k=o-x;do{E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],w-=3}while(w>2);w&&(E[o++]=E[k++],w>1&&(E[o++]=E[k++]))}break}}break}}while(r>3,p&=(1<<(h-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r>1,u=-7,f=n?i-1:0,d=n?-1:1,p=t[e+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=h,a/=256,c-=8);t[n+p-h]|=128*m}},kd2E:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=t.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},kl5A:function(t,e,n){(function(e,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("yQtW"),l=n("43KI"),c=n("2Tiy"),u=s.IncomingMessage,f=s.readyStates;var d=t.exports=function(t){var n,r=this;l.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){r.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":o.vbArray&&t?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(d,l.Writable),d.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},d.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?c(e.concat(t._body)):o.blobConstructor?new r.Blob(t._body.map((function(t){return c(t)})),{type:(a["content-type"]||{}).value||""}):e.concat(t._body).toString());var l=[];if(Object.keys(a).forEach((function(t){var e=a[t].name,n=a[t].value;Array.isArray(n)?n.forEach((function(t){l.push([e,t])})):l.push([e,n])})),"fetch"===t._mode){var u=null;if(o.abortController){var d=new AbortController;u=d.signal,t._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(t._fetchTimer=r.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(t._opts.url,{method:t._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var p=t._xhr=new r.XMLHttpRequest;try{p.open(t._opts.method,t._opts.url,!0)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}"responseType"in p&&(p.responseType=t._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){t.emit("requestTimeout")}),l.forEach((function(t){p.setRequestHeader(t[0],t[1])})),t._response=null,p.onreadystatechange=function(){switch(p.readyState){case f.LOADING:case f.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(p.onprogress=function(){t._onXHRProgress()}),p.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{p.send(s)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}}}},d.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new u(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},d.prototype._write=function(t,e,n){this._body.push(t),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(this,t,e,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n("tjlA").Buffer,n("yLpj"),n("8oxB"))},kzlf:function(t,e,n){(function(e){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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 r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=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:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.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 r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},l={},c={},u={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=u.block:t&a.LEVEL&a.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}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"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(l[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.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))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.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)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!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,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(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},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i0&&n.next(o.retain-s)}for(var c=new l(r);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()&&i(c.ops[c.ops.length-1],p)){var m=new l(e.rest());return c.concat(m).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],e),u=a.iterator(this.ops),f=a.iterator(t.ops);return c.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,u.peekLength()),u.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),e);var s=u.next(n),l=f.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l).delete(n)}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&t(r,{},i)},l.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s.delete)continue;c.delete?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:y(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[c.default,s.default.Embed,u.default],e.bubbleFormats=y,e.BlockEmbed=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=_(e,r),this.container=this.options.container,null==this.container)return g.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=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 l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.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(l.default.events.EDITOR_CHANGE,(function(t){t===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),h.default.level(t)}},{key:"find",value:function(t){return t.__quill||u.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&g.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||g.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?u.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(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")).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 r=this,o=x(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],w.call(this,(function(){return r.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(u.default.query(t,u.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,l=x(t,e,n,r,o),c=i(l,4);return t=c[0],e=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,l=x(t,e,n,r,o),c=i(l,4);return t=c[0],e=c[1],a=c[2],o=c[3],w.call(this,(function(){return s.editor.formatText(t,e,a)}),o,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 r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.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=x(t,e),r=i(n,2);return t=r[0],e=r[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=x(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return w.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,l=x(t,0,n,r,o),c=i(l,4);return t=c[0],a=c[2],o=c[3],w.call(this,(function(){return s.editor.insertText(t,e,a)}),o,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 r=this,o=x(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],w.call(this,(function(){return r.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]:l.default.sources.API;return w.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=x(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.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]:l.default.sources.API;return w.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=m.default;var n=(0,p.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 r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?g.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,p.default)(!0,{},b.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 w(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===l.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=k(i,s,e):0!==r&&(i=k(i,n,r,e)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var c,u,f=[l.default.events.TEXT_CHANGE,s,o,e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,f)}return s}function x(t,e,n,i,o){var a={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||l.default.sources.API]}function k(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var c=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==l.default.sources.USER)})),u=i(c,2);o=u[0],s=u[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},e.expandConfig=_,e.overload=x,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=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}(t,e,n))};function s(t){return null==t}function l(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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.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){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(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=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,l=o-a+1,c=this.isolate(a,l),u=c.next;c.format(r,i),u instanceof e&&u.formatAt(0,t-a+n-l,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(u.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,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(s.default.create("text","\n")),o(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){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(l.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=m,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),m=i(h,2),y=m[0],g=m[1],b=(0,v.default)({},(0,f.bubbleFormats)(y));if(y instanceof d.default){var _=y.descendant(l.default.Leaf,g),w=i(_,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(w))}u=s.default.attributes.diff(b,u)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}o+=c}return Object.keys(u).forEach((function(n){e.scroll.formatAt(t,c,n,u[n])})),t+c}),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 a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof c.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{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 a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof l.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(l.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=_((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,o)}},{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 a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=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(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{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===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],l=o[1],u=0,f=new a.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+u-1).insert("\n"));var d=this.getContents(t,e+u).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{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,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(g)&&l.default.find(e[0].target)){var i=l.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),c=e[0].oldValue.replace(u.default.CONTENTS,""),d=(new a.default).insert(c),p=(new a.default).insert(i.value()),h=(new a.default).retain(s).concat(d.diff(p,n));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,m.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function _(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(l.default.sources.SILENT)}return i(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(l.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&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.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 i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var f=document.createRange();if(e>0){f.setStart(i,l);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),m=r(h,2);return i=m[0],l=m[1],f.setEnd(i,l),f.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(l0&&(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 d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),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 i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),l=s.offset(e.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(i,a)})),a=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(u(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!m(this.root,t.startContainer)||!t.collapsed&&!m(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){for(var e=t.node,n=t.offset;!(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;n=(e=e.lastChild)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],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),l=r(s,2),c=l[0],u=l[1],f=c.position(u,0!==n),d=r(f,2);a=d[0],u=d[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,i));s=r(l,1)[0]}if(null!=a&&null!=s){var c=t.getBoundingClientRect();n.topc.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.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]:l.default.sources.API;if("string"==typeof e&&(n=e,e=!1),d.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,u(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],c=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function m(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r: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,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),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 r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r: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,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.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(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(t){n=function(){}}try{r=Set}catch(t){r=function(){}}try{i=Promise}catch(t){i=function(){}}function o(a,l,c,u,f){"object"==typeof l&&(c=l.depth,u=l.prototype,f=l.includeNonEnumerable,l=l.circular);var d=[],p=[],h=void 0!==e;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var v,y;if("object"!=typeof c)return c;if(t(c,n))v=new n;else if(t(c,r))v=new r;else if(t(c,i))v=new i((function(t,e){c.then((function(e){t(a(e,m-1))}),(function(t){e(a(t,m-1))}))}));else if(o.__isArray(c))v=[];else if(o.__isRegExp(c))v=new RegExp(c.source,s(c)),c.lastIndex&&(v.lastIndex=c.lastIndex);else if(o.__isDate(c))v=new Date(c.getTime());else{if(h&&e.isBuffer(c))return v=e.allocUnsafe?e.allocUnsafe(c.length):new e(c.length),c.copy(v),v;t(c,Error)?v=Object.create(c):void 0===u?(y=Object.getPrototypeOf(c),v=Object.create(y)):(v=Object.create(u),y=u)}if(l){var g=d.indexOf(c);if(-1!=g)return p[g];d.push(c),p.push(v)}for(var b in t(c,n)&&c.forEach((function(t,e){var n=a(e,m-1),r=a(t,m-1);v.set(n,r)})),t(c,r)&&c.forEach((function(t){var e=a(t,m-1);v.add(e)})),c){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=a(c[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(b=0;b0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof u.default?null:p.children.head;s.moveChildren(p,v),s.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,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(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(h,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,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};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&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(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=s.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,d.default],e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=A(t);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var c=t.quill.getLine(l.index),u=i(c,2),d=u[0],p=u[1],h=t.quill.getLeaf(l.index),m=i(h,2),v=m[0],y=m[1],g=0===l.length?[v,y]:t.quill.getLeaf(l.index+l.length),b=i(g,2),_=b[0],w=b[1],x=v instanceof f.default.Text?v.value().slice(0,y):"",k=_ instanceof f.default.Text?_.value().slice(w):"",C={collapsed:0===l.length,empty:0===l.length&&d.length()<=1,format:t.quill.getFormat(l),offset:p,prefix:x,suffix:k};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==C.collapsed)return!1;if(null!=e.empty&&e.empty!==C.empty)return!1;if(null!=e.offset&&e.offset!==C.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==C.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=C.format[t]:!1===e.format[t]?null==C.format[t]:(0,s.default)(e.format[t],C.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(C.prefix)||null!=e.suffix&&!e.suffix.test(C.suffix)||!0===e.handler.call(t,l,C))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function _(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),c=this.quill.getFormat(t.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function x(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var l=this.quill.getLine(t.index+1),c=i(l,1)[0];if(c){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=u.default.attributes.diff(f,p)||{},o=c.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function k(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=u.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function C(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function O(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),m=l.domNode.textContent.slice(p,h).split("\n");c=0,m.forEach((function(e,i){t?(l.insertAt(p+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function E(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function A(t){if("string"==typeof t||"number"==typeof t)return A({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[g]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.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",d.default.sources.USER)}},"outdent backspace":{key:b.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",d.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new c.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,d.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,l.default)({},r.formats(),{list:"checked"}),s=(new c.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new c.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.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,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",d.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new c.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=s,e.sanitize=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n1&&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":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}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=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),a=y(o),s=y(n(16)),l=y(n(25)),c=y(n(24)),u=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),m=y(n(42)),v=y(n(23));function y(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),r.default.register(a.default,s.default,c.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.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 r.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 r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},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[r.DATA_KEY]&&delete this.domNode[r.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?r.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?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=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=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},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=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;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}(a(n(9)).default);function l(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(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)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&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,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=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;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(d.default);function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=k,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();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){for(var e=0,n=this.head;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);for(var n,r=this.iterator();n=r();){var i=n.length();if(ta?n(r,t-a,Math.min(e,a+l-t)):n(r,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=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,s),n.attach(),n}return i(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,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(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}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(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,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},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=a.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=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.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 r=n.indexOf(t,e);return-1!==r&&r===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),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,f=t.length>e.length?e:t,d=u.indexOf(f);if(-1!=d)return c=[[r,u.substring(0,d)],[i,f],[r,u.substring(d+f.length)]],t.length>e.length&&(c[0][0]=c[2][0]=n),c;if(1==f.length)return[[n,t],[r,e]];var p=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,i,o,a,f]:null}var o,a,c,u,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;o=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(a=o[0],c=o[1],u=o[2],f=o[3]):(u=o[0],f=o[1],a=o[2],c=o[3]);var h=o[4];return[a,c,u,f,h]}(t,e);if(p){var h=p[0],m=p[1],v=p[2],y=p[3],g=p[4],b=o(h,v),_=o(m,y);return b.concat([[i,g]],_)}return function(t,e){for(var i=t.length,o=e.length,s=Math.ceil((i+o)/2),l=s,c=2*s,u=new Array(c),f=new Array(c),d=0;di)v+=2;else if(x>o)m+=2;else if(h&&(O=l+p-_)>=0&&O=k)return a(t,e,A,x)}}for(var C=-b+y;C<=b-g;C+=2){for(var O=l+C,E=(k=C==-b||C!=b&&f[O-1]i)g+=2;else if(E>o)y+=2;else if(!h&&(w=l+p-C)>=0&&w=(k=i-k))return a(t,e,A,x)}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-f),e=e.substring(0,e.length-f));return d&&h.unshift([i,d]),p&&h.push([i,p]),function t(e){e.push([i,""]);for(var o,a=0,c=0,u=0,f="",d="";a1?(0!==c&&0!==u&&(0!==(o=s(d,f))&&(a-c-u>0&&e[a-c-u-1][0]==i?e[a-c-u-1][1]+=d.substring(0,o):(e.splice(0,0,[i,d.substring(0,o)]),a++),d=d.substring(o),f=f.substring(o)),0!==(o=l(d,f))&&(e[a][1]=d.substring(d.length-o)+e[a][1],d=d.substring(0,d.length-o),f=f.substring(0,f.length-o))),0===c?e.splice(a-u,c+u,[r,d]):0===u?e.splice(a-c,c+u,[n,f]):e.splice(a-c-u,c+u,[n,f],[r,d]),a=a-c-u+(c?1:0)+(u?1:0)+1):0!==a&&e[a-1][0]==i?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,u=0,c=0,f="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(a=1;a0&&o.splice(a+2,0,[l[0],c]),u(o,a,3)}return t}(h,c)),h=function(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=2;a=55296&&s.charCodeAt(s.length-1)<=56319&&t[a-1][0]===n&&o(t[a-1][1])&&t[a][0]===r&&o(t[a][1])&&(e=!0,t[a-1][1]=t[a-2][1].slice(-1)+t[a-1][1],t[a][1]=t[a-2][1].slice(-1)+t[a][1],t[a-2][1]=t[a-2][1].slice(0,-1));var s;if(!e)return t;var l=[];for(a=0;a0&&l.push(t[a]);return l}(h)}function a(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function s(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n=0&&r>=e-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=A(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=l.default.query(t);if(null==n||"list-item"!==n.blotName||!j(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new s.default}]],C=[d.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),O=[d.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,y.FontStyle,g.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==$)&&r.addMatcher(o,a)})),r}return 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)}(e,t),o(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 +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,_({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],l=o[1],c=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[x]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,l);return j(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,c.default.sources.USER),e.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[x]=t[x]||[],t[x].push(s)}))}})),[e,n]}}]),e}(f.default);function A(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return A(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},_({},e,n),r.attributes))}),new s.default)}function S(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function j(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function N(t,e,n){return A(n,t,!0)}function P(t,e){var n=l.default.Attributor.Attribute.keys(t),r=l.default.Attributor.Class.keys(t),i=l.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=O[e])||n.attrName!==e&&n.keyName!==e||(n=O[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=A(e,o)),e}function L(t,e){var n=l.default.query(t);if(null==n)return e;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=A(e,n.blotName,n.formats(t)));return e}function M(t,e){return j(e,"\n")||(T(t)||e.length()>0&&t.nextSibling&&T(t.nextSibling))&&e.insert("\n"),e}function $(t,e){if(T(t)&&null!=t.nextElementSibling&&!j(e,"\n\n")){var n=t.offsetHeight+parseFloat(S(t).marginTop)+parseFloat(S(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function q(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(!S(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&T(t.parentNode)||null!=t.previousSibling&&T(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&T(t.parentNode)||null!=t.nextSibling&&T(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},e.default=E,e.matchAttributor=P,e.matchBlot=L,e.matchNewline=M,e.matchSpacing=$,e.matchText=q},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{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 r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=$(n(29)),i=n(36),o=n(38),a=n(64),s=$(n(65)),l=$(n(66)),c=n(67),u=$(c),f=n(37),d=n(26),p=n(39),h=n(40),m=$(n(56)),v=$(n(68)),y=$(n(27)),g=$(n(69)),b=$(n(70)),_=$(n(71)),w=$(n(72)),x=$(n(73)),k=n(13),C=$(k),O=$(n(74)),E=$(n(75)),A=$(n(57)),S=$(n(41)),j=$(n(28)),T=$(n(59)),N=$(n(60)),P=$(n(61)),L=$(n(108)),M=$(n(62));function $(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":v.default,"formats/link":y.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":O.default,"modules/syntax":E.default,"modules/toolbar":A.default,"themes/bubble":L.default,"themes/snow":M.default,"ui/icons":S.default,"ui/picker":j.default,"ui/icon-picker":N.default,"ui/color-picker":T.default,"ui/tooltip":P.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){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&&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=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return 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)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 c.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}(s.default.Embed);u.blotName="image",u.tagName="IMG",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(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 c.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}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);f.className="ql-syntax";var d=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(t){function e(t,n){l(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return u(e,t),r(e,null,[{key:"register",value:function(){o.default.register(d,!0),o.default.register(f,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=d,e.default=p},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],l=r.quill.getIndex(s),u=Math.min(s.length()-1,e.index+e.length-l),f=r.quill.getBounds(new c.Range(l,u));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(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(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.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=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=y,e.default=v},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n("tjlA").Buffer)},lJCZ:function(t,e,n){(function(t){var r=n("kl5A"),i=n("yQtW"),o=n("U6jy"),a=n("jAWH"),s=n("CxY0"),l=e;l.request=function(e,n){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},l.get=function(t,e){var n=l.request(t,e);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n("yLpj"))},lm0R:function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},nm4c:function(t,e,n){"use strict";var r=n("vn/o"),i=n("yDR0"),o=n("7tol"),a=n("frGm"),s=n("aFNf"),l=0,c=1,u=2,f=4,d=5,p=6,h=0,m=1,v=2,y=-2,g=-3,b=-4,_=-5,w=8,x=1,k=2,C=3,O=4,E=5,A=6,S=7,j=8,T=9,N=10,P=11,L=12,M=13,$=14,q=15,R=16,I=17,F=18,D=19,B=20,z=21,U=22,H=23,K=24,W=25,V=26,G=27,Z=28,Y=29,X=30,J=31,Q=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,h):y}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):y}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?y:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):y}function lt(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==h&&(t.state=null),n):y}var ct,ut,ft=!0;function dt(t){if(ft){var e;for(ct=new r.Buf32(512),ut=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,ct,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,ut,0,t.work,{bits:5}),ft=!1}t.lencode=ct,t.lenbits=9,t.distcode=ut,t.distbits=5}function pt(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,At,2,0),st=0,lt=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=X;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=X;break}if(lt-=4,xt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=X;break}n.dmax=1<>8&1),512&n.flags&&(At[0]=255&st,At[1]=st>>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0,n.mode=C;case C:for(;lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,At[2]=st>>>16&255,At[3]=st>>>24&255,n.check=o(n.check,At,4,0)),st=0,lt=0,n.mode=O;case O:for(;lt<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(At[0]=255&st,At[1]=st>>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0,n.mode=E;case E:if(1024&n.flags){for(;lt<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,At,2,0)),st=0,lt=0}else n.head&&(n.head.extra=null);n.mode=A;case A:if(1024&n.flags&&((ft=n.length)>ot&&(ft=ot),ft&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,ft,xt)),512&n.flags&&(n.check=o(n.check,tt,ft,nt)),ot-=ft,nt+=ft,n.length-=ft),n.length))break t;n.length=0,n.mode=S;case S:if(2048&n.flags){if(0===ot)break t;ft=0;do{xt=tt[nt+ft++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&ft>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=L;break;case N:for(;lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7<,lt-=7<,n.mode=G;break}for(;lt<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=$;break;case 1:if(dt(n),n.mode=B,e===p){st>>>=2,lt-=2;break t}break;case 2:n.mode=I;break;case 3:t.msg="invalid block type",n.mode=X}st>>>=2,lt-=2;break;case $:for(st>>>=7<,lt-=7<lt<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&st,st=0,lt=0,n.mode=q,e===p)break t;case q:n.mode=R;case R:if(ft=n.length){if(ft>ot&&(ft=ot),ft>at&&(ft=at),0===ft)break t;r.arraySet(et,tt,nt,ft,it),ot-=ft,nt+=ft,at-=ft,it+=ft,n.length-=ft;break}n.mode=L;break;case I:for(;lt<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,lt-=5,n.ndist=1+(31&st),st>>>=5,lt-=5,n.ncode=4+(15&st),st>>>=4,lt-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=F;case F:for(;n.have>>=3,lt-=3}for(;n.have<19;)n.lens[St[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ct={bits:n.lenbits},kt=s(l,n.lens,0,19,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,kt){t.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=D;case D:for(;n.have>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=vt,lt-=vt,n.lens[n.have++]=gt;else{if(16===gt){for(Ot=vt+2;lt>>=vt,lt-=vt,0===n.have){t.msg="invalid bit length repeat",n.mode=X;break}xt=n.lens[n.have-1],ft=3+(3&st),st>>>=2,lt-=2}else if(17===gt){for(Ot=vt+3;lt>>=vt)),st>>>=3,lt-=3}else{for(Ot=vt+7;lt>>=vt)),st>>>=7,lt-=7}if(n.have+ft>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=X;break}for(;ft--;)n.lens[n.have++]=xt}}if(n.mode===X)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Ct={bits:n.lenbits},kt=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,kt){t.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Ct={bits:n.distbits},kt=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ct),n.distbits=Ct.bits,kt){t.msg="invalid distances set",n.mode=X;break}if(n.mode=B,e===p)break t;case B:n.mode=z;case z:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=lt,a(t,ut),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,lt=n.bits,n.mode===L&&(n.back=-1);break}for(n.back=0;yt=(Et=n.lencode[st&(1<>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>bt)])>>>16&255,gt=65535&Et,!(bt+(vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=bt,lt-=bt,n.back+=bt}if(st>>>=vt,lt-=vt,n.back+=vt,n.length=gt,0===yt){n.mode=V;break}if(32&yt){n.back=-1,n.mode=L;break}if(64&yt){t.msg="invalid literal/length code",n.mode=X;break}n.extra=15&yt,n.mode=U;case U:if(n.extra){for(Ot=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;yt=(Et=n.distcode[st&(1<>>16&255,gt=65535&Et,!((vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>bt)])>>>16&255,gt=65535&Et,!(bt+(vt=Et>>>24)<=lt);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=bt,lt-=bt,n.back+=bt}if(st>>>=vt,lt-=vt,n.back+=vt,64&yt){t.msg="invalid distance code",n.mode=X;break}n.offset=gt,n.extra=15&yt,n.mode=K;case K:if(n.extra){for(Ot=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=X;break}n.mode=W;case W:if(0===at)break t;if(ft=ut-at,n.offset>ft){if((ft=n.offset-ft)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=X;break}ft>n.wnext?(ft-=n.wnext,ht=n.wsize-ft):ht=n.wnext-ft,ft>n.length&&(ft=n.length),mt=n.window}else mt=et,ht=it-n.offset,ft=n.length;ft>at&&(ft=at),at-=ft,n.length-=ft;do{et[it++]=mt[ht++]}while(--ft);0===n.length&&(n.mode=z);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=z;break;case G:if(n.wrap){for(;lt<32;){if(0===ot)break t;ot--,st|=tt[nt++]<4?9:0)}function Q(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-R?t.strstart-(t.w_size-R):0,c=t.window,u=t.w_mask,f=t.prev,d=t.strstart+q,p=c[o+a-1],h=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===h&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;p=c[o+a-1],h=c[o+a]}}}while((e=f[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,l,c,u,f,d,p,h=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-R)){i.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=h?r-h:0}while(--n);e=n=h;do{r=t.prev[--e],t.prev[e]=r>=h?r-h:0}while(--n);o+=h}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,f=t.strstart+t.lookahead,d=o,p=void 0,(p=c.avail_in)>d&&(p=d),n=0===p?0:(c.avail_in-=p,i.arraySet(u,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,u,p,f):2===c.state.wrap&&(c.adler=s(c.adler,u,p,f)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=$)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=$&&(t.ins_h=(t.ins_h<=$)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-$),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=$){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=$&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=$-1)),t.prev_length>=$&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-$,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-$),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>A||n!==E||r<8||r>15||e<0||e>9||a<0||a>k)return X(t,v);8===r&&(r=9);var l=new ct;return t.state=l,l.strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===c)return W;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return W;if(t.strstart-t.block_start>=t.w_size-R&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),W)})),new lt(4,4,8,4,at),new lt(4,5,16,8,at),new lt(4,6,32,32,at),new lt(4,4,16,16,st),new lt(8,16,32,32,st),new lt(8,16,128,128,st),new lt(8,32,128,256,st),new lt(32,128,258,1024,st),new lt(32,258,258,4096,st)],e.deflateInit=function(t,e){return dt(t,e,E,S,j,C)},e.deflateInit2=dt,e.deflateReset=ft,e.deflateResetKeep=ut,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?v:(t.state.gzhead=e,h):v},e.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||e>p||e<0)return t?X(t,v):v;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===K&&e!==d)return X(t,0===t.avail_out?g:v);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===F)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=D):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,Y),i.status=H);else{var y=E+(i.w_bits-8<<4)<<8;y|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(y|=I),y+=31-y%31,i.status=H,rt(i,y),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===D)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=B)}else i.status=B;if(i.status===B)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=z)}else i.status=z;if(i.status===z)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=U)}else i.status=U;if(i.status===U&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=H)):i.status=H),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&J(e)<=J(n)&&e!==d)return X(t,g);if(i.status===K&&0!==t.avail_in)return X(t,g);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==K){var b=i.strategy===w?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===c)return W;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):i.strategy===x?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=q){if(ot(t),t.lookahead<=q&&e===c)return W;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=$&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+q;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=$?(n=o._tr_tally(t,1,t.match_length-$),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return W}return t.insert=0,e===d?(et(t,!0),0===t.strm.avail_out?G:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?W:V}(i,e):r[i.level].func(i,e);if(b!==G&&b!==Z||(i.status=K),b===W||b===G)return 0===t.avail_out&&(i.last_flush=-1),h;if(b===V&&(e===u?o._tr_align(i):e!==p&&(o._tr_stored_block(i,0,0,!1),e===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,h}return e!==d?h:i.wrap<=0?m:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:m)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==F&&e!==D&&e!==B&&e!==z&&e!==U&&e!==H&&e!==K?X(t,v):(t.state=null,e===H?X(t,y):h):v},e.deflateSetDictionary=function(t,e){var n,r,o,s,l,c,u,f,d=e.length;if(!t||!t.state)return v;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==F||n.lookahead)return v;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(Q(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,d-n.w_size,n.w_size,0),e=f,d=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=d,t.next_in=0,t.input=e,ot(n);n.lookahead>=$;){r=n.strstart,o=n.lookahead-($-1);do{n.ins_h=(n.ins_h<0&&setTimeout((function(){return r.get(t,e,n)}),1e3),e=e||[],n=this.checkLocale(n),this._translations[n][t]||t)}},{key:"has",value:function(t,e){return["en","en_GB"].indexOf(e)>-1||t!=this.get(t,e)}},{key:"trans",value:function(t,e,n){return this.get(t,e,n)}},{key:"choice",value:function(t,e,n,r){}},{key:"getPluralIndex",value:function(t,e){return function(t,e){switch("pt_BR"==t&&(t="xbr"),t.length>3&&(t=t.substr(0,t.lastIndexOf("_"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0==e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":return e%10==1?0:1;case"mt":return 1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0==e?0:e%10==1&&e%100!=11?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0==e||e%100>0&&e%100<20?1:2;case"ar":return 0==e?0:1==e?1:2==e?2:e>=3&&e<=10?3:e>=11&&e<=99?4:5;default:return 0}}(t,e)}},{key:"locale",value:function(){return this.getLocale()}},{key:"getLocale",value:function(){return this._locale}},{key:"setLocale",value:function(t){"string"!=typeof t&&(t=this._getFallback(),console.error("Could not set a locale to Translator.")),this._locale=t}},{key:"addLocale",value:function(t){"string"!=typeof t?console.error("Could not add a locale to Translator."):this._translations.includes(t)||(this._translations.push(t),this._translations[t]={})}},{key:"checkLocale",value:function(t){return"string"!=typeof t&&(t=this.locale()||this._getFallback()),t}},{key:"loadFromJsonPath",value:(o=i.a.mark((function t(e,n){var r,o=this;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.checkLocale(n),r=this._fileName(e,n),t.prev=2,!this._isLoaded(r)){t.next=9;break}return t.abrupt("return",1);case 8:throw new Error("File ".concat(r," is already loaded."));case 9:return this.addLocale(n),this._queueCount++,this._loadedFiles.push(r),t.next=14,a.a.get(r).then((function(t){Object.assign(o._translations[n],t.data)})).catch((function(t){console.log(t)})).then((function(){o._queueCount--}));case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(2),console.log("".concat(t.t0.name,": ").concat(t.t0.message));case 19:case"end":return t.stop()}}),t,this,[[2,16]])})),c=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){s(i,n,r,a,l,"next",t)}function l(t){s(i,n,r,a,l,"throw",t)}a(void 0)}))},function(t,e){return c.apply(this,arguments)})},{key:"_fileName",value:function(t,e){return this._url+(t?"".concat(t,"/").concat(e,".json"):"".concat(e,".json"))}},{key:"_isLoaded",value:function(t){return this._loadedFiles.includes(t)}},{key:"_getFallback",value:function(){return this._fallback}},{key:"_setFallback",value:function(t){this._fallback=t}}])&&l(e.prototype,n),r&&l(e,r),t}(),u=n("XuX8"),f=n.n(u);function d(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var p,h,m,v={data:function(){return{langProvider:langProvider}},filters:{trans:function(t,e){return langProvider.trans(t,e)}},methods:{__:function(t,e){return this.trans(t,e)},trans:function(t,e){return langProvider.trans(t,e)},loadFromJsonPath:(p=i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,langProvider.loadFromJsonPath(e);case 2:case"end":return t.stop()}}),t)})),h=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=p.apply(t,e);function o(t){d(i,n,r,o,a,"next",t)}function a(t){d(i,n,r,o,a,"throw",t)}o(void 0)}))},function(t){return h.apply(this,arguments)})}},y={data:function(){return{app_name:Pageinfo.app_name,app_url:Pageinfo.app_url,app_skin:Pageinfo.app_skin}},computed:{skin:function(){var t=this;return function(e){return"".concat(t.app_url,"/resources/skins/").concat(t.app_skin,"/public/").concat(e).replace(/\/+$/,"")}},url:function(){var t=this;return function(e){return"".concat(t.app_url,"/").concat(e).replace(/\/+$/,"")}}}},g=n("L2JU");function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return a()({url:t,params:e,method:"GET",headers:_({Accept:"application/json","Content-Type":"application/json"},x())})}function C(t,e){return a()({url:t,data:e,method:"POST",headers:_({},x())})}function O(t,e){return a()({url:t,data:e,method:"PUT",headers:_({},x())})}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A,S="".concat(Pageinfo.api_url,"/auth/"),j=["id","name","avatar","role","api_token"],T={namespaced:!0,state:{status:null,user:null,base_url:S},getters:{user:function(t){return t.user},api_token:function(t){return t.user&&t.user.api_token},authStatus:function(t){return t.status},isLogged:function(t){return Boolean(t.user&&t.user.api_token)}},mutations:(m={},E(m,"AUTH_INITIALIZE",(function(t,e){t.status="initialized",t.user=e})),E(m,"AUTH_REQUEST",(function(t){t.status="loading",t.user=null})),E(m,"AUTH_SUCCESS",(function(t,e){t.status="success",t.user=e})),E(m,"AUTH_ERROR",(function(t){t.status="error",t.user=null})),E(m,"AUTH_RESET",(function(t){t.status=null,t.user=null})),m),actions:{_reset:function(t){localStorage.removeItem("user"),t.commit("AUTH_RESET")},initialize:function(t){return new Promise((function(e,n){try{t.commit("AUTH_INITIALIZE",JSON.parse(localStorage.getItem("user"))),e()}catch(e){t.dispatch("_reset"),t.commit("AUTH_ERROR"),n(e.message)}}))},logout:function(t){return new Promise((function(e,n){t.dispatch("_reset"),e()}))},login:function(t,e){return t.dispatch("_reset"),t.commit("AUTH_REQUEST"),C(t.state.base_url+"login",e).then((function(e){if(202!=e.status)throw new Error(e.data.message);var n=e.data.data;for(var r in n.api_token=e.headers.api_token,n)j.includes(r)||delete n[r];return localStorage.setItem("user",JSON.stringify(n)),t.commit("AUTH_SUCCESS",n),n})).catch((function(e){return t.commit("AUTH_ERROR"),Promise.reject(e)}))}}};function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L,M={namespaced:!0,state:{container:{}},getters:{all:function(t){return t.container}},mutations:(A={},P(A,"SET_META",(function(t,e){t.container=function(t){for(var e=1;e0?vt:mt)(t)},gt=Math.min,bt=function(t){return t>0?gt(yt(t),9007199254740991):0},_t=Math.max,wt=Math.min,xt=function(t){return function(e,n,r){var i,o=ht(e),a=bt(o.length),s=function(t,e){return(t=yt(t))<0?_t(t+e,0):wt(t,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},kt=D((function(t){var e=it("wks"),n=B.Symbol,r="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:rt)("Symbol."+t))}).store=e})),Ct=kt("unscopables"),Ot=Array.prototype;null==Ot[Ct]&&J(Ot,Ct,{});var Et,At=xt(!0);ct(ct.P,"Array",{includes:function(t){return At(this,t,arguments.length>1?arguments[1]:void 0)}}),Et="includes",Ot[Ct][Et]=!0;z.Array.includes;var St=it("keys"),jt=xt(!1),Tt=function(t){return St[t]||(St[t]=rt(t))}("IE_PROTO"),Nt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Pt=Object.keys||function(t){return function(t,e){var n,r=ht(t),i=0,o=[];for(n in r)n!=Tt&&tt(r,n)&&o.push(n);for(;e.length>i;)tt(r,n=e[i++])&&(~jt(o,n)||o.push(n));return o}(t,Nt)},Lt={f:Object.getOwnPropertySymbols},Mt={f:{}.propertyIsEnumerable},$t=function(t){return Object(pt(t))},qt=Object.assign,Rt=!qt||K((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=qt({},t)[n]||Object.keys(qt({},e)).join("")!=r}))?function(t,e){for(var n=$t(t),r=arguments.length,i=1,o=Lt.f,a=Mt.f;r>i;)for(var s,l=dt(arguments[i++]),c=o?Pt(l).concat(o(l)):Pt(l),u=c.length,f=0;u>f;)s=c[f++],W&&!a.call(l,s)||(n[s]=l[s]);return n}:qt;ct(ct.S+ct.F,"Object",{assign:Rt});z.Object.assign;var It=Mt.f,Ft=function(t){return function(e){for(var n,r=ht(e),i=Pt(r),o=i.length,a=0,s=[];o>a;)n=i[a++],W&&!It.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},Dt=Ft(!0);ct(ct.S,"Object",{entries:function(t){return Dt(t)}});z.Object.entries;var Bt=Ft(!1);ct(ct.S,"Object",{values:function(t){return Bt(t)}});z.Object.values;var zt=kt("match"),Ut=function(t,e,n){if(U(r=e)&&(void 0!==(i=r[zt])?i:"RegExp"==ft(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,i;return String(pt(t))},Ht=kt("match"),Kt="".startsWith;ct(ct.P+ct.F*function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ht]=!1,!"/./"[t](e)}catch(t){}}return!0}("startsWith"),"String",{startsWith:function(t){var e=Ut(this,t,"startsWith"),n=bt(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return Kt?Kt.call(e,r,n):e.slice(n,n+r.length)===r}});z.String.startsWith;var Wt=function(){function t(){}return t.register=function(t){this.database=t},t}(),Vt=function(t,e){return(Vt=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 Gt(t,e){function n(){this.constructor=t}Vt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Zt=function(){return(Zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e)return 1;if(t=a)return l;var c=n[s];return l*("desc"===c?-1:1)}}return t.index-e.index}(t,e,n)}))},pickBy:function(t,e){return Object.keys(t).reduce((function(n,r){var i=t[r];return e(i,r)&&(n[r]=i),n}),{})}},te=function(t){this.model=t},ee=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.isNullable=!1,i.value=n,i.mutator=r,i}return Gt(e,t),e.prototype.nullable=function(){return this.isNullable=!0,this},e.prototype.mutate=function(t,e){var n=this.mutator||this.model.mutators()[e];return n?n(t):t},e}(te),ne=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.value=n,i}return Gt(e,t),e.prototype.make=function(t,e,n){var r=t=void 0!==t?t:this.value;return"function"==typeof t&&(r=t()),this.mutate(r,n)},e}(ee),re=function(t){function e(e){return t.call(this,e,null)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return"number"==typeof t?t:null},e}(ee),ie=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"string"==typeof t?t:null===t&&this.isNullable?t:t+""},e}(ee),oe=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){return void 0===t?this.value:"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:null===t&&this.isNullable?t:0},e}(ee),ae=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return Gt(e,t),e.prototype.make=function(t,e,n){return this.mutate(this.fix(t),n)},e.prototype.fix=function(t){if(void 0===t)return this.value;if("boolean"==typeof t)return t;if("string"==typeof t){if(0===t.length)return!1;var e=parseInt(t,0);return!!isNaN(e)||!!e}return"number"==typeof t?!!t:!(null!==t||!this.isNullable)&&t},e}(ee),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.getRelation=function(t,e,n){var r=t.newQuery(e);return n.forEach((function(t){t(r)})),r},e.prototype.getKeys=function(t,e){return t.reduce((function(t,n){return null===n[e]||void 0===n[e]?t:(t.push(n[e]),t)}),[])},e.prototype.mapSingleRelations=function(t,e){return t.reduce((function(t,n){return t[n[e]]=n,t}),{})},e.prototype.mapManyRelations=function(t,e){return t.reduce((function(t,n){var r=n[e];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e.prototype.isOneRelation=function(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t},e.prototype.isManyRelation=function(t){return!!Array.isArray(t)&&!(t.length<1)},e.prototype.makeManyRelation=function(t,e){var n=this;return this.isManyRelation(t)?t.filter((function(t){return n.isOneRelation(t)})).map((function(t){return new e(t)})):[]},e}(te),le=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity];r&&r[t]&&void 0===r[t][this.foreignKey]&&(e[this.localKey]||(e[this.localKey]=e.$id),r[t][this.foreignKey]=e[this.localKey])},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.foreignKey]]=n,t}),{})},e}(se),ce=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.one(this.parent)},e.prototype.attach=function(t,e,n){void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.parent(t):null},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.parent.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.ownerKey,this.getKeys(e,this.foreignKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.foreignKey],o=null!==e?i[e]:null;t[n]=o||null}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){return t[n[e.ownerKey]]=n,t}),{})},e}(se),ue=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.related=o.model.relation(n),o.foreignKey=r,o.localKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;Array.isArray(t)&&t.forEach((function(t){var i=n[r.related.entity];i&&i[t]&&void 0===i[t][r.foreignKey]&&(i[t][r.foreignKey]=e[r.localKey])}))},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this.getRelation(t,this.related.entity,r);this.addEagerConstraints(i,e),this.match(e,i.get(),n)},e.prototype.addEagerConstraints=function(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))},e.prototype.match=function(t,e,n){var r=this,i=this.buildDictionary(e);t.forEach((function(t){var e=t[r.localKey],o=i[e];t[n]=o||[]}))},e.prototype.buildDictionary=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.foreignKey];return t[r]||(t[r]=[]),t[r].push(n),t}),{})},e}(se),fe=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.parent=o.model.relation(n),o.foreignKey=r,o.ownerKey=i,o}return Gt(e,t),e.prototype.define=function(t){return t.many(this.parent)},e.prototype.attach=function(t,e,n){0!==t.length&&void 0===e[this.foreignKey]&&(e[this.foreignKey]=t)},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.parent)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.parent.entity,r);this.addConstraintForHasManyBy(o,e);var a=this.mapSingleRelations(o.get(),this.ownerKey);e.forEach((function(t){var e=i.getRelatedRecords(a,t[i.foreignKey]);t[n]=e}))},e.prototype.addConstraintForHasManyBy=function(t,e){var n=this,r=e.reduce((function(t,e){return t.concat(e[n.foreignKey])}),[]);t.where(this.ownerKey,r)},e.prototype.getRelatedRecords=function(t,e){return e.reduce((function(e,n){var r=t[n];return r&&e.push(r),e}),[])},e}(se),de=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.through=l.model.relation(r),l.firstKey=i,l.secondKey=o,l.localKey=a,l.secondLocalKey=s,l}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.through.entity);this.addEagerConstraintForThrough(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapThroughRelations(s,o);e.forEach((function(t){var e=l[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForThrough=function(t,e){t.where(this.firstKey,this.getKeys(e,this.localKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.where(this.secondKey,this.getKeys(e,this.secondLocalKey))},e.prototype.mapThroughRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.secondKey);return t.reduce((function(t,e){var i=e[n.firstKey];t[i]||(t[i]=[]);var o=r[e[n.secondLocalKey]];return t[i]=t[i].concat(o),t}),{})},e}(se),pe=function(t){function e(e,n,r,i,o,a,s){var l=t.call(this,e)||this;return l.related=l.model.relation(n),l.pivot=l.model.relation(r),l.foreignPivotKey=i,l.relatedPivotKey=o,l.parentKey=a,l.relatedKey=s,l}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e){t.whereFk(this.foreignPivotKey,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedPivotKey))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.foreignPivotKey];t[i]||(t[i]=[]);var o=r[e[n.relatedPivotKey]];return o&&(t[i]=t[i].concat(o)),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return this.pivot.primaryKey instanceof Array==!1?e:(Qt.forOwn(e[t.entity],(function(t){var i=t[n];void 0!==i&&0!==i.length&&r.createPivotRecord(e,t,i)})),e)},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=t[r.related.entity][n][r.relatedKey],l=s+"_"+a,c=t[r.pivot.entity]?t[r.pivot.entity][l]:{};t[r.pivot.entity]=Zt({},t[r.pivot.entity],((i={})[l]=Zt({},c,((o={$id:l})[r.foreignPivotKey]=a,o[r.relatedPivotKey]=s,o)),i))}))},e}(se),he=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.id=n,i.type=r,i}return Gt(e,t),e.prototype.define=function(t){var e=this;return t.union((function(t,n){return n[e.type]}))},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){if(!this.isOneRelation(t))return null;var r=e[this.type],i=this.model.relation(r);return i?new i(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getTypes(e).reduce((function(e,n){var o=i.getRelation(t,n,r);return e[n]=i.mapSingleRelations(o.get(),"$id"),e}),{});e.forEach((function(t){var e=t[i.id],r=t[i.type],a=o[r][e];t[n]=a||null}))},e.prototype.getTypes=function(t){var e=this;return t.reduce((function(t,n){var r=n[e.type];return!t.includes(r)&&t.push(r),t}),[])},e}(se),me=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return Gt(e,t),e.prototype.define=function(t){return t.one(this.related)},e.prototype.attach=function(t,e,n){var r=n[this.related.entity]&&n[this.related.entity][t];r&&(r[this.id]=r[this.id]||e.$id,r[this.type]=r[this.type]||this.model.entity)},e.prototype.make=function(t,e,n){return this.isOneRelation(t)?new this.related(t):null},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphOne(o,e,t.entity);var a=this.mapSingleRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||null}))},e.prototype.addEagerConstraintForMorphOne=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(se),ve=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.related=a.model.relation(n),a.id=r,a.type=i,a.localKey=o,a}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){var r=this;if(Array.isArray(t)){var i=n[this.related.entity];t.forEach((function(t){var n=i[t];n[r.id]=n[r.id]||e.$id,n[r.type]=n[r.type]||r.model.entity}))}},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r);this.addEagerConstraintForMorphMany(o,e,t.entity);var a=this.mapManyRelations(o.get(),this.id);e.forEach((function(t){var e=a[t[i.localKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForMorphMany=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))},e}(se),ye=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,t.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedId))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.id];t[i]||(t[i]=[]);var o=r[e[n.relatedId]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Qt.forOwn(e[t.entity],(function(i){var o=t.query().newQuery(r.pivot.entity).where(r.id,i[r.parentKey]).where(r.type,t.entity).get().map((function(t){return t[r.parentKey]})),a=(i[n]||[]).filter((function(t){return!o.includes(t)}));Array.isArray(a)&&0!==a.length&&r.createPivotRecord(t,e,i,a)})),e},e.prototype.createPivotRecord=function(t,e,n,r){var i=this;r.forEach((function(r){var o,a,s=n[i.parentKey],l=e[i.related.entity][r][i.relatedKey],c=s+"_"+r+"_"+t.entity;e[i.pivot.entity]=Zt({},e[i.pivot.entity],((o={})[c]=((a={$id:c})[i.relatedId]=l,a[i.id]=s,a[i.type]=t.entity,a),o))}))},e}(se),ge=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,e)||this;return c.related=c.model.relation(n),c.pivot=c.model.relation(r),c.relatedId=i,c.id=o,c.type=a,c.parentKey=s,c.relatedKey=l,c}return Gt(e,t),e.prototype.define=function(t){return t.many(this.related)},e.prototype.attach=function(t,e,n){},e.prototype.make=function(t,e,n){return this.makeManyRelation(t,this.related)},e.prototype.load=function(t,e,n,r){var i=this,o=this.getRelation(t,this.related.entity,r),a=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(a,e,this.related.entity);var s=a.get();this.addEagerConstraintForRelated(o,s);var l=this.mapPivotRelations(s,o);e.forEach((function(t){var e=l[t[i.parentKey]];t[n]=e||[]}))},e.prototype.addEagerConstraintForPivot=function(t,e,n){t.whereFk(this.type,n).whereFk(this.relatedId,this.getKeys(e,this.parentKey))},e.prototype.addEagerConstraintForRelated=function(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.id))},e.prototype.mapPivotRelations=function(t,e){var n=this,r=this.mapManyRelations(e.get(),this.relatedKey);return t.reduce((function(t,e){var i=e[n.relatedId];t[i]||(t[i]=[]);var o=r[e[n.id]];return t[i]=t[i].concat(o),t}),{})},e.prototype.createPivots=function(t,e,n){var r=this;return Qt.forOwn(e[t.entity],(function(t){var i=t[n];Array.isArray(i)&&r.createPivotRecord(e,t,i)})),e},e.prototype.createPivotRecord=function(t,e,n){var r=this;n.forEach((function(n){var i,o,a=e[r.parentKey],s=n+"_"+a+"_"+r.related.entity;t[r.pivot.entity]=Zt({},t[r.pivot.entity],((i={})[s]=((o={$id:s})[r.relatedId]=a,o[r.id]=n,o[r.type]=r.related.entity,o),i))}))},e}(se),be=function(){function t(){}return t.serialize=function(t){var e=this,n=t.$fields();return Object.keys(n).reduce((function(n,r){var i=t[r];return n[r]=e.serializeValue(i),n}),{})},t.serializeValue=function(t){return t instanceof we?this.serializeItem(t):Array.isArray(t)?this.serializeCollection(t):t},t.serializeItem=function(t){return t.$toJson()},t.serializeCollection=function(t){return t.map((function(t){return t instanceof we?t.$toJson():t}))},t}(),_e=function(){function t(){}return t.set=function(){this.value=""+this.prefix+this.count},t.get=function(){return this.value},t.increment=function(){return this.count++,this.set(),this.get()},t.count=0,t.prefix="_no_key_",t.value="",t}(),we=function(){function t(t){this.$id=null,this.$fill(t)}return t.fields=function(){return{}},t.getFields=function(){return this.cachedFields?this.cachedFields:(this.cachedFields=this.fields(),this.cachedFields)},t.attr=function(t,e){return new ne(this,t,e)},t.string=function(t,e){return new ie(this,t,e)},t.number=function(t,e){return new oe(this,t,e)},t.boolean=function(t,e){return new ae(this,t,e)},t.increment=function(){return new re(this)},t.hasOne=function(t,e,n){return new le(this,t,e,this.localKey(n))},t.belongsTo=function(t,e,n){return new ce(this,t,e,this.relation(t).localKey(n))},t.hasMany=function(t,e,n){return new ue(this,t,e,this.localKey(n))},t.hasManyBy=function(t,e,n){return new fe(this,t,e,this.relation(t).localKey(n))},t.hasManyThrough=function(t,e,n,r,i,o){return new de(this,t,e,n,r,this.localKey(i),this.relation(e).localKey(o))},t.belongsToMany=function(t,e,n,r,i,o){return new pe(this,t,e,n,r,this.localKey(i),this.relation(t).localKey(o))},t.morphTo=function(t,e){return new he(this,t,e)},t.morphOne=function(t,e,n,r){return new me(this,t,e,n,this.localKey(r))},t.morphMany=function(t,e,n,r){return new ve(this,t,e,n,this.localKey(r))},t.morphToMany=function(t,e,n,r,i,o,a){return new ye(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.morphedByMany=function(t,e,n,r,i,o,a){return new ge(this,t,e,n,r,i,this.localKey(o),this.relation(t).localKey(a))},t.mutators=function(){return{}},t.database=function(){return Wt.database},t.store=function(){return this.database().store},t.namespace=function(t){return this.database().namespace+"/"+this.entity+"/"+t},t.getters=function(t){return this.store().getters[this.namespace(t)]},t.dispatch=function(t,e){return this.store().dispatch(this.namespace(t),e)},t.commit=function(t){this.store().commit(this.database().namespace+"/$mutate",{entity:this.entity,callback:t})},t.all=function(){return this.getters("all")()},t.find=function(t){return this.getters("find")(t)},t.findIn=function(t){return this.getters("findIn")(t)},t.query=function(){return this.getters("query")()},t.new=function(){return this.dispatch("new")},t.create=function(t){return this.dispatch("create",t)},t.insert=function(t){return this.dispatch("insert",t)},t.update=function(t){return this.dispatch("update",t)},t.insertOrUpdate=function(t){return this.dispatch("insertOrUpdate",t)},t.delete=function(t){return this.dispatch("delete",t)},t.deleteAll=function(){return this.dispatch("deleteAll")},t.id=function(t){var e=this.primaryKey;return"string"==typeof e?t[e]:e.map((function(e){return t[e]||_e.increment()})).join("_")},t.localKey=function(t){return t||("string"==typeof this.primaryKey?this.primaryKey:"id")},t.relation=function(t){return"string"!=typeof t?t:this.database().model(t)},t.getAttributeClass=function(t){switch(t){case"increment":return re;default:throw Error('The attribute name "'+t+"\" doesn't exist.")}},t.getFieldsByAttribute=function(t){var e=this.getAttributeClass(t),n=this.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof e&&(t[r]=i),t}),{})},t.getIncrementFields=function(){return this.getFieldsByAttribute("increment")},t.hasIncrementFields=function(){return Object.keys(this.getIncrementFields()).length>0},t.pivotFields=function(){var t=[];return Qt.forOwn(this.fields(),(function(e,n){var r;(e instanceof pe||e instanceof ye||e instanceof ge)&&t.push(((r={})[n]=e,r))})),t},t.hasPivotFields=function(){return this.pivotFields().length>0},t.hydrate=function(t){return new this(t).$toJson()},t.prototype.$self=function(){return this.constructor},t.prototype.$fields=function(){return this.$self().getFields()},t.prototype.$store=function(){return this.$self().store()},t.prototype.$namespace=function(t){return this.$self().namespace(t)},t.prototype.$getters=function(t){return this.$self().getters(t)},t.prototype.$dispatch=function(t,e){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(n){return[2,this.$self().dispatch(t,e)]}))}))},t.prototype.$all=function(){return this.$getters("all")()},t.prototype.$find=function(t){return this.$getters("find")(t)},t.prototype.$findIn=function(t){return this.$getters("findIn")(t)},t.prototype.$query=function(){return this.$getters("query")()},t.prototype.$create=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("create",t)]}))}))},t.prototype.$insert=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("insert",t)]}))}))},t.prototype.$update=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return Array.isArray(t)?[2,this.$dispatch("update",t)]:void 0!==t.where?[2,this.$dispatch("update",t)]:void 0===this.$self().id(t)?[2,this.$dispatch("update",{where:this.$id,data:t})]:[2,this.$dispatch("update",t)]}))}))},t.prototype.$insertOrUpdate=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return[2,this.$dispatch("insertOrUpdate",t)]}))}))},t.prototype.$save=function(){return Yt(this,void 0,void 0,(function(){var t,e,n,r=this;return Xt(this,(function(i){switch(i.label){case 0:return t=this.$self().getFields(),e=Object.keys(t).reduce((function(e,n){return t[n]instanceof ee&&(e[n]=r[n]),e}),{}),[4,this.$dispatch("insertOrUpdate",{data:e})];case 1:return n=i.sent(),this.$fill(n[this.$self().entity][0]),[2,this]}}))}))},t.prototype.$delete=function(t){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(e){return t?[2,this.$dispatch("delete",t)]:null===this.$id?[2,null]:[2,this.$dispatch("delete",this.$id)]}))}))},t.prototype.$deleteAll=function(){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(t){return[2,this.$dispatch("deleteAll")]}))}))},t.prototype.$fill=function(t){var e=this,n=t||{},r=this.$fields();Object.keys(r).forEach((function(t){var i=r[t],o=n[t];e[t]=i.make(o,n,t)})),void 0!==n.$id&&(this.$id=n.$id)},t.prototype.$toJson=function(){return be.serialize(this)},t.prototype.toJSON=function(){return this.$toJson()},t.primaryKey="id",t.state={},t}();function xe(t,e){for(var n=0;n1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]}(t),Me(e).map((function(e,s){return i(e,n,r,t,o,a)}))},qe=function(t){function e(){return t.apply(this,arguments)||this}Ee(e,t);var n=e.prototype;return n.normalize=function(t,e,n,r,i,o){var a=this;return Me(t).map((function(t,s){return a.normalizeValue(t,e,n,r,i,o)})).filter((function(t){return null!=t}))},n.denormalize=function(t,e){var n=this;return t&&t.map?t.map((function(t){return n.denormalizeValue(t,e)})):t},e}(Ne),Re=function(t,e,n,r,i,o,a){var s=Oe({},e);return Object.keys(t).forEach((function(n){var r=t[n],l=i(e[n],e,n,r,o,a);null==l?delete s[n]:s[n]=l})),s},Ie=function(t,e,n){if(Ae(e))return Se(t,e,n);var r=Oe({},e);return Object.keys(t).forEach((function(e){null!=r[e]&&(r[e]=n(r[e],t[e]))})),r},Fe=function t(e,n,r,i,o,a){return"object"==typeof e&&e?"object"!=typeof i||i.normalize&&"function"==typeof i.normalize?i.normalize(e,n,r,t,o,a):(Array.isArray(i)?$e:Re)(i,e,n,r,t,o,a):e},De={Array:qe,Entity:Te,Object:function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var r,i=t[n];return Oe({},e,((r={})[n]=i,r))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t.withAllRecursive(e-1)}))},t.setEagerLoad=function(t,e,n){void 0===n&&(n=null),t.load[e]||(t.load[e]=[]),n&&t.load[e].push(n)},t.parseWithRelations=function(t,e,n){var r=this,i=e[0];i.split("|").forEach((function(i){1!==e.length?r.setEagerLoad(t,i):r.setEagerLoad(t,i,n)})),1!==e.length&&(e.shift(),this.addNestedWiths(t,i,e,n))},t.addNestedWiths=function(t,e,n,r){this.setEagerLoad(t,e,(function(t){t.with(n.join("."),r)}))},t.eagerLoadRelations=function(t,e){var n=t.model.getFields();for(var r in t.load){var i=t.load[r],o=n[r];o instanceof se&&o.load(t,e,r,i)}},t}(),Je=function(){function t(){}return t.has=function(t,e,n,r){this.setHas(t,e,"exists",n,r)},t.hasNot=function(t,e,n,r){this.setHas(t,e,"doesntExist",n,r)},t.whereHas=function(t,e,n){this.setHas(t,e,"exists",void 0,void 0,n)},t.whereHasNot=function(t,e,n){this.setHas(t,e,"doesntExist",void 0,void 0,n)},t.setHas=function(t,e,n,r,i,o){void 0===r&&(r=">="),void 0===i&&(i=1),void 0===o&&(o=null),"number"!=typeof r?t.have.push({relation:e,type:n,operator:r,count:i,constraint:o}):t.have.push({relation:e,type:n,operator:">=",count:r,constraint:o})},t.applyConstraints=function(t){if(0!==t.have.length){var e=t.newQuery();this.addHasWhereConstraints(t,e),this.addHasConstraints(t,e.get())}},t.addHasWhereConstraints=function(t,e){t.have.forEach((function(t){e.with(t.relation,t.constraint)}))},t.addHasConstraints=function(t,e){var n=this.getComparators(t),r=[];e.forEach((function(t){n.every((function(e){return e(t)}))&&r.push(t.$id)})),t.whereIdIn(r)},t.getComparators=function(t){var e=this;return t.have.map((function(t){return e.getComparator(t)}))},t.getComparator=function(t){var e=this,n=this.getCountComparator(t.operator);return function(r){var i=e.getRelationshipCount(r[t.relation]),o=n(i,t.count);return"exists"===t.type?o:!o}},t.getRelationshipCount=function(t){return Array.isArray(t)?t.length:t?1:0},t.getCountComparator=function(t){switch(t){case"=":return function(t,e){return t===e};case">":return function(t,e){return t>e};case">=":return function(t,e){return t>=e};case"<":return function(t,e){return t>0&&t0&&t<=e};default:return function(t,e){return t===e}}},t}(),Qe=function(){function t(t){this.indexToBeDeleted=[],this.query=t}return t.on=function(t,e,n){void 0===n&&(n=!1);var r=this.lastHookId+1;return this.lastHookId=r,this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push({callback:e,once:n,uid:r}),r},t.off=function(t){var e=this,n=!1;return Object.keys(this.hooks).some((function(r){var i=e.hooks[r],o=i.findIndex((function(e){return e.uid===t}));return-1!==o&&(i.splice(o,1),n=!0),n})),n},t.prototype.self=function(){return this.constructor},t.prototype.getHook=function(t){return this.query.model[t]||null},t.prototype.getGlobalHook=function(t){return this.self().hooks[t]||null},t.prototype.has=function(t){return!!this.getHook(t)||!!this.getGlobalHook(t)},t.prototype.executeSelectHook=function(t,e){return this.has(t)?(e=this.executeLocalSelectHook(t,e),e=this.executeGlobalSelectHook(t,e)):e},t.prototype.executeLocalSelectHook=function(t,e){var n=this.getHook(t);return n?n(e,this.query.entity):e},t.prototype.executeGlobalSelectHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(!r)return e;var i=[];return r.forEach((function(t,r){var o=t.callback,a=t.once;e=o.call(n.query,e,n.query.entity),a&&i.push(r)})),i.reverse().forEach((function(t){r.splice(t,1)})),e},t.prototype.executeMutationHookOnRecords=function(t,e){var n=this;this.has(t)&&(Object.keys(e).forEach((function(r){!1===n.executeMutationHook(t,e[r])&&delete e[r]})),this.removeGlobalHook(t))},t.prototype.executeMutationHook=function(t,e){return!1!==this.executeLocalMutationHook(t,e)&&(!1!==this.executeGlobalMutationHook(t,e)&&void 0)},t.prototype.executeLocalMutationHook=function(t,e){var n=this.getHook(t);if(n)return n(e,this.query.entity)},t.prototype.executeGlobalMutationHook=function(t,e){var n=this,r=this.getGlobalHook(t);if(r){var i=[];return r.forEach((function(t,r){i.push(t.callback.call(n.query,e,n.query.entity)),t.once&&n.indexToBeDeleted.push(r)})),!i.includes(!1)&&void 0}},t.prototype.removeGlobalHook=function(t){var e=this.getGlobalHook(t);e&&this.indexToBeDeleted.reverse().forEach((function(t){e.splice(t,1)}))},t.hooks={},t.lastHookId=0,t}(),tn=function(){function t(t,e){this.idFilter=null,this.cancelIdFilter=!1,this.joinedIdFilter=null,this.wheres=[],this.have=[],this.orders=[],this.offsetNumber=0,this.limitNumber=Math.pow(2,53)-1,this.load={},this.rootState=t,this.state=t[e],this.entity=e,this.model=this.getModel(e),this.module=this.getModule(e),this.hook=new Qe(this)}return t.database=function(){return Wt.database},t.getModel=function(t){return this.database().model(t)},t.getModels=function(){return this.database().models()},t.getModule=function(t){return this.database().module(t)},t.getModules=function(){return this.database().modules()},t.deleteAll=function(t){var e=this,n=this.getModels();Qt.forOwn(n,(function(n,r){t[r]&&new e(t,r).deleteAll()}))},t.on=function(t,e,n){return Qe.on(t,e,n)},t.off=function(t){return Qe.off(t)},t.prototype.self=function(){return this.constructor},t.prototype.newQuery=function(e){return e=e||this.entity,new t(this.rootState,e)},t.prototype.database=function(){return this.self().database()},t.prototype.getModel=function(t){var e=t||this.entity;return this.self().getModel(e)},t.prototype.getModels=function(){return this.self().getModels()},t.prototype.getModule=function(t){var e=t||this.entity;return this.self().getModule(e)},t.prototype.getModules=function(){return this.self().getModules()},t.prototype.all=function(){return this.get()},t.prototype.find=function(t){return this.item(this.state.data[t])},t.prototype.findIn=function(t){var e=this;return t.map((function(t){return e.state.data[t]})).filter((function(t){return t}))},t.prototype.get=function(){var t=this.select();return this.collect(t)},t.prototype.first=function(){var t=this.select();return this.item(t[0])},t.prototype.last=function(){var t=this.select();return this.item(t[t.length-1])},t.prototype.where=function(t,e){return this.isIdfilterable(t)&&this.setIdFilter(e),this.wheres.push({field:t,value:e,boolean:"and"}),this},t.prototype.orWhere=function(t,e){return this.cancelIdFilter=!0,this.wheres.push({field:t,value:e,boolean:"or"}),this},t.prototype.whereId=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereIdIn=function(t){return this.where(this.model.primaryKey,t)},t.prototype.whereFk=function(t,e){var n=Array.isArray(e)?e:[e];return t===this.model.primaryKey?(this.setJoinedIdFilter(n),this):(this.where(t,n),this)},t.prototype.isIdfilterable=function(t){return t===this.model.primaryKey&&!this.cancelIdFilter},t.prototype.setIdFilter=function(t){var e=this,n=Array.isArray(t)?t:[t];null!==this.idFilter?this.idFilter=new Set(n.filter((function(t){return e.idFilter.has(t)}))):this.idFilter=new Set(n)},t.prototype.setJoinedIdFilter=function(t){var e=this;null!==this.joinedIdFilter?this.joinedIdFilter=new Set(t.filter((function(t){return e.joinedIdFilter.has(t)}))):this.joinedIdFilter=new Set(t)},t.prototype.orderBy=function(t,e){return void 0===e&&(e="asc"),this.orders.push({field:t,direction:e}),this},t.prototype.offset=function(t){return this.offsetNumber=t,this},t.prototype.limit=function(t){return this.limitNumber=t,this},t.prototype.with=function(t,e){return void 0===e&&(e=null),Xe.with(this,t,e),this},t.prototype.withAll=function(){return Xe.withAll(this),this},t.prototype.withAllRecursive=function(t){return void 0===t&&(t=3),Xe.withAllRecursive(this,t),this},t.prototype.has=function(t,e,n){return Je.has(this,t,e,n),this},t.prototype.hasNot=function(t,e,n){return Je.hasNot(this,t,e,n),this},t.prototype.whereHas=function(t,e){return Je.whereHas(this,t,e),this},t.prototype.whereHasNot=function(t,e){return Je.whereHasNot(this,t,e),this},t.prototype.records=function(){var t=this;return this.finalizeIdFilter(),this.getIdsToLookup().map((function(e){var n=t.state.data[e];return n instanceof we?n:t.hydrate(n)}))},t.prototype.finalizeIdFilter=function(){this.cancelIdFilter&&null!==this.idFilter&&(this.where(this.model.primaryKey,Array.from(this.idFilter.values())),this.idFilter=null)},t.prototype.getIdsToLookup=function(){var t=this;return this.idFilter&&this.joinedIdFilter?Array.from(this.idFilter.values()).filter((function(e){return t.joinedIdFilter.has(e)})):this.idFilter||this.joinedIdFilter?Array.from((this.idFilter||this.joinedIdFilter).values()):Object.keys(this.state.data)},t.prototype.select=function(){Je.applyConstraints(this);var t=this.records();return t=this.hook.executeSelectHook("beforeSelect",t),t=this.filterWhere(t),t=this.hook.executeSelectHook("afterWhere",t),t=this.filterOrderBy(t),t=this.hook.executeSelectHook("afterOrderBy",t),t=this.filterLimit(t),t=this.hook.executeSelectHook("afterLimit",t)},t.prototype.filterWhere=function(t){return Ye.where(this,t)},t.prototype.filterOrderBy=function(t){return Ye.orderBy(this,t)},t.prototype.filterLimit=function(t){return Ye.limit(this,t)},t.prototype.count=function(){return this.get().length},t.prototype.max=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.max.apply(Math,e)},t.prototype.min=function(t){var e=this.get().reduce((function(e,n){return"number"==typeof n[t]&&e.push(n[t]),e}),[]);return 0===e.length?0:Math.min.apply(Math,e)},t.prototype.sum=function(t){return this.get().reduce((function(e,n){return"number"==typeof n[t]&&(e+=n[t]),e}),0)},t.prototype.item=function(t){if(!t)return null;if(Object.keys(this.load).length>0){t=new this.model(t);var e=this.hook.executeSelectHook("beforeRelations",[t]);t=e[0],Xe.eagerLoadRelations(this,[t]),t=(e=this.hook.executeSelectHook("afterRelations",[t]))[0]}return t},t.prototype.collect=function(t){var e=this;return t.length<1?[]:(Object.keys(this.load).length>0&&(t=t.map((function(t){return new e.model(t)})),t=this.hook.executeSelectHook("beforeRelations",t),Xe.eagerLoadRelations(this,t),t=this.hook.executeSelectHook("afterRelations",t)),t)},t.prototype.new=function(){var t=(new this.model).$toJson();return this.insert(t,{})[this.entity][0]},t.prototype.create=function(t,e){return this.persist(t,"create",e)},t.prototype.createMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=n})),this.map(n)},t.prototype.insert=function(t,e){return this.persist(t,"insert",e)},t.prototype.insertMany=function(t){var e=this,n=this.hydrateMany(t);return this.commit("create",n,(function(){e.state.data=Zt({},e.state.data,n)})),this.map(n)},t.prototype.update=function(t,e,n){if(Array.isArray(t))return this.persist(t,"update",n);if("function"==typeof t){if(!e)throw new Error("You must specify `where` to update records by specifying `data` as a closure.");return"function"==typeof e?this.updateByCondition(t,e):this.updateById(t,e)}if("function"==typeof e)return this.updateByCondition(t,e);if(!e)return this.persist(t,"update",n);if(Array.isArray(this.model.primaryKey))throw new Error("\n You can't specify `where` value as `string` or `number` when you\n have a composite key defined in your model. Please include composite\n keys to the `data` fields.\n ");return this.updateById(t,e)},t.prototype.updateMany=function(t){var e=this.combine(t);return this.commitUpdate(e)},t.prototype.updateById=function(t,e){var n;e="number"==typeof e?e.toString():e;var r=this.state.data[e];if(!r)return null;var i=((n={})[e]=this.processUpdate(t,r),n);return this.commitUpdate(i),i[e]},t.prototype.updateByCondition=function(t,e){var n=this,r=Object.keys(this.state.data).reduce((function(r,i){var o=n.state.data[i];return e(o)?(r[i]=n.processUpdate(t,o),r):r}),{});return this.commitUpdate(r)},t.prototype.processUpdate=function(t,e){return"function"==typeof t?(t(e),e):this.hydrate(Zt({},e,t))},t.prototype.commitUpdate=function(t){var e=this;return t=this.updateIndexes(t),this.commit("update",t,(function(){e.state.data=Zt({},e.state.data,t)})),this.map(t)},t.prototype.updateIndexes=function(t){var e=this;return Object.keys(t).reduce((function(t,n){var r=t[n],i=String(e.model.id(r));return n!==i&&(r.$id=i,t[i]=r,delete t[n]),t}),t)},t.prototype.insertOrUpdate=function(t,e){return this.persist(t,"insertOrUpdate",e)},t.prototype.insertOrUpdateMany=function(t){var e=this,n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];e.state.data[i]?r[i]=o:n[i]=o})),this.insertMany(n).concat(this.updateMany(r))},t.prototype.persist=function(t,e,n){var r=this;return t=this.normalize(t),Qt.isEmpty(t)?("create"===e&&(this.state.data={}),{}):Object.keys(t).reduce((function(i,o){var a=r.newQuery(o)[r.getPersistMethod(o,e,n)+"Many"](t[o]);return a.length>0&&(i[o]=a),i}),{})},t.prototype.getPersistMethod=function(t,e,n){return n.create&&n.create.includes(t)?"create":n.insert&&n.insert.includes(t)?"insert":n.update&&n.update.includes(t)?"update":n.insertOrUpdate&&n.insertOrUpdate.includes(t)?"insertOrUpdate":e},t.prototype.delete=function(t){return"function"==typeof t?this.deleteByCondition(t):this.deleteById(t)},t.prototype.deleteById=function(t){var e;t="number"==typeof t?t.toString():t;var n=this.state.data[t];if(!n)return null;var r=((e={})[t]=n,e);return this.commitDelete(r)[0]},t.prototype.deleteByCondition=function(t){var e=this,n=Object.keys(this.state.data).reduce((function(n,r){var i=e.state.data[r];return t(i)?(n[r]=i,n):n}),{});return this.commitDelete(n)},t.prototype.deleteAll=function(){var t=this.state.data;this.commitDelete(t)},t.prototype.commitDelete=function(t){var e=this;return this.commit("delete",t,(function(){var n=Object.keys(t);e.state.data=Object.keys(e.state.data).reduce((function(t,r){return n.includes(r)||(t[r]=e.state.data[r]),t}),{})})),this.map(t)},t.prototype.normalize=function(t){return We.normalize(this,t)},t.prototype.hydrate=function(t){return new(0,this.model)(t)},t.prototype.hydrateMany=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=t[r];return n[r]=e.hydrate(i),n}),{})},t.prototype.combine=function(t){var e=this;return Object.keys(t).reduce((function(n,r){var i=e.state.data[r];if(!i)return n;var o=t[r];return n[r]=e.hydrate(Zt({},i,o)),n}),{})},t.prototype.map=function(t){return Object.keys(t).map((function(e){return t[e]}))},t.prototype.commit=function(t,e,n){var r=""+t.charAt(0).toUpperCase()+t.slice(1);this.hook.executeMutationHookOnRecords("before"+r,e),n(),this.hook.executeMutationHookOnRecords("after"+r,e)},t}(),en={query:function(t,e,n,r){return function(){return r[t.$connection+"/query"](t.$name)}},all:function(t,e,n,r){return function(){return r[t.$connection+"/all"](t.$name)}},find:function(t,e,n,r){return function(e){return r[t.$connection+"/find"](t.$name,e)}},findIn:function(t,e,n,r){return function(e){return r[t.$connection+"/findIn"](t.$name,e)}}},nn={new:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/new",{entity:n},{root:!0})},create:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/create",Zt({},e,{entity:r}),{root:!0})},insert:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insert",Zt({},e,{entity:r}),{root:!0})},update:function(t,e){var n=t.state,r=n.$name;return Array.isArray(e)?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):void 0===e.data?t.dispatch(n.$connection+"/update",{entity:r,data:e},{root:!0}):t.dispatch(n.$connection+"/update",Zt({entity:r},e),{root:!0})},insertOrUpdate:function(t,e){var n=t.state,r=n.$name;return t.dispatch(n.$connection+"/insertOrUpdate",Zt({entity:r},e),{root:!0})},delete:function(t,e){var n=t.state,r=n.$name,i="object"==typeof e?e.where:e;return t.dispatch(n.$connection+"/delete",{entity:r,where:i},{root:!0})},deleteAll:function(t){var e=t.state,n=e.$name;return t.dispatch(e.$connection+"/deleteAll",{entity:n},{root:!0})}},rn={query:function(t){return function(e){return new tn(t,e)}},all:function(t){return function(e){return new tn(t,e).all()}},find:function(t){return function(e,n){return new tn(t,e).find(n)}},findIn:function(t){return function(e,n){return new tn(t,e).findIn(n)}}},on={new:function(t,e){var n={data:{}};return t.commit("new",Zt({},e,{result:n})),n.data},create:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("create",Zt({},e,{result:n})),[2,n.data]}))}))},insert:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("insert",Zt({},e,{result:n})),[2,n.data]}))}))},update:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("update",Zt({},e,{result:n})),[2,n.data]}))}))},insertOrUpdate:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("insertOrUpdate",Zt({},e,{result:n})),[2,n.data]}))}))},delete:function(t,e){return Yt(this,void 0,void 0,(function(){var n;return Xt(this,(function(r){return n={data:{}},t.commit("delete",Zt({},e,{result:n})),[2,n.data]}))}))},deleteAll:function(t,e){return Yt(this,void 0,void 0,(function(){return Xt(this,(function(n){return e&&e.entity?(t.commit("deleteAll",{entity:e.entity}),[2]):(t.commit("deleteAll"),[2])}))}))}},an=function(){function t(){}return t.createPersistOptions=function(t){return{create:t.create,insert:t.insert,update:t.update,insertOrUpdate:t.insertOrUpdate}},t}(),sn={$mutate:function(t,e){e.callback(t[e.entity])},new:function(t,e){var n=e.entity;e.result.data=new tn(t,n).new()},create:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).create(r,i)},insert:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).insert(r,i)},update:function(t,e){var n=e.entity,r=e.data,i=e.where||null,o=an.createPersistOptions(e);e.result.data=new tn(t,n).update(r,i,o)},insertOrUpdate:function(t,e){var n=e.entity,r=e.data,i=an.createPersistOptions(e);e.result.data=new tn(t,n).insertOrUpdate(r,i)},delete:function(t,e){var n=e.entity,r=e.where;e.result.data=new tn(t,n).delete(r)},deleteAll:function(t,e){e&&e.entity?new tn(t,e.entity).deleteAll():tn.deleteAll(t)}};var ln=function(){function t(){}return t.create=function(t){return function(e,n,r){var i=t.id(e);return null==i||""===i?_e.get():i}},t}(),cn=function(){function t(){}return t.create=function(t){var e=this;return function(n,r,i){var o=e.getId(t,n);return Zt({},n,{$id:o})}},t.getId=function(t,e){var n=t.id(e);return null==n||""===n?_e.increment():n},t}(),un=function(){function t(t){var e=this;this.schemas={},this.model=t;var n=t.database().models();Object.keys(n).forEach((function(t){e.one(n[t])}))}return t.create=function(t){return new this(t).one()},t.prototype.one=function(t){if(t=t||this.model,this.schemas[t.entity])return this.schemas[t.entity];var e=new De.Entity(t.entity,{},{idAttribute:ln.create(t),processStrategy:cn.create(t)});this.schemas[t.entity]=e;var n=this.definition(t);return e.define(n),e},t.prototype.many=function(t){return new De.Array(this.one(t))},t.prototype.union=function(t){return new De.Union(this.schemas,t)},t.prototype.definition=function(t){var e=this,n=t.fields();return Object.keys(n).reduce((function(t,r){var i=n[r];return i instanceof se&&(t[r]=i.define(e)),t}),{})},t}(),fn=function(){function t(){}return t.create=function(t,e,n){var r={namespaced:!0,state:{$name:t},getters:rn,actions:on,mutations:sn,modules:{}};return this.createModules(r,t,e,n)},t.createModules=function(t,e,n,r){var i=this;return Object.keys(r).forEach((function(o){var a=n[o],s=r[o];t.modules[o]={namespaced:!0},t.modules[o].state=i.createState(e,o,a,s),t.getters[o]=function(t,e,n,r){return function(){return e.query(o)}},t.modules[o].getters=Zt({},en,s.getters),t.modules[o].actions=Zt({},nn,s.actions),t.modules[o].mutations=s.mutations||{}})),t},t.createState=function(t,e,n,r){var i="function"==typeof n.state?n.state():n.state,o="function"==typeof r.state?r.state():r.state;return Zt({},i,o,{$connection:t,$name:e,data:{}})},t}(),dn=function(){function t(){this.entities=[],this.schemas={}}return t.prototype.start=function(t,e){this.store=t,this.namespace=e,this.registerModules(),this.createSchema()},t.prototype.register=function(t,e){void 0===e&&(e={}),this.entities.push({name:t.entity,model:t,module:e})},t.prototype.model=function(t){return this.models()[t]},t.prototype.models=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.model,t}),{})},t.prototype.module=function(t){return this.modules()[t]},t.prototype.modules=function(){return this.entities.reduce((function(t,e){return t[e.name]=e.module,t}),{})},t.prototype.registerModules=function(){var t=fn.create(this.namespace,this.models(),this.modules());this.store.registerModule(this.namespace,t)},t.prototype.createSchema=function(){var t=this;this.entities.forEach((function(e){t.schemas[e.name]=un.create(e.model)}))},t}(),pn={install:function(t,e){void 0===e&&(e={});var n=e.namespace||"entities";return function(e){Wt.register(t),t.start(e,n)}},use:function(t,e){void 0===e&&(e={});var n={Model:we,Query:tn,Attribute:te,Type:ee,Attr:ne,String:ie,Number:oe,Boolean:ae,Increment:re,Relation:se,HasOne:le,BelongsTo:ce,HasMany:ue,HasManyBy:fe,BelongsToMany:pe,HasManyThrough:de,MorphTo:he,MorphOne:me,MorphMany:ve,MorphToMany:ye,MorphedByMany:ge,Getters:en,Actions:nn,RootGetters:rn,RootActions:on,RootMutations:sn};t.install(n,e)},Database:dn,Model:we,Query:tn,Attribute:te,Type:ee,Attr:ne,String:ie,Number:oe,Boolean:ae,Increment:re,Relation:se,HasOne:le,BelongsTo:ce,HasMany:ue,HasManyBy:fe,BelongsToMany:pe,HasManyThrough:de,MorphTo:he,MorphOne:me,MorphMany:ve,MorphToMany:ye,MorphedByMany:ge,Getters:en,Actions:nn,RootGetters:rn,RootActions:on,RootMutations:sn},hn=n("WmSy"),mn=n.n(hn);function vn(t){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(t,e){for(var n=0;n-1}function Zr(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function Yr(t,e){for(var n in e)t[n]=e[n];return t}var Xr={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$createElement,s=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),u=0,f=!1;i&&i._routerRoot!==i;){var d=i.$vnode&&i.$vnode.data;d&&(d.routerView&&u++,d.keepAlive&&i._inactive&&(f=!0)),i=i.$parent}if(o.routerViewDepth=u,f)return a(c[s],o,r);var p=l.matched[u];if(!p)return c[s]=null,a();var h=c[s]=p.components[s];o.registerRouteInstance=function(t,e){var n=p.instances[s];(e&&n!==t||!e&&n===t)&&(p.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[s]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[s]&&(p.instances[s]=t.componentInstance)};var m=o.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(l,p.props&&p.props[s]);if(m){m=o.props=Yr({},m);var v=o.attrs=o.attrs||{};for(var y in m)h.props&&y in h.props||(v[y]=m[y],delete m[y])}return a(h,o,r)}};var Jr=/[!'()*]/g,Qr=function(t){return"%"+t.charCodeAt(0).toString(16)},ti=/%2C/g,ei=function(t){return encodeURIComponent(t).replace(Jr,Qr).replace(ti,",")},ni=decodeURIComponent;function ri(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=ni(n.shift()),i=n.length>0?ni(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function ii(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return ei(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(ei(e)):r.push(ei(e)+"="+ei(t)))})),r.join("&")}return ei(e)+"="+ei(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var oi=/\/?$/;function ai(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=si(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:ui(e,i),matched:t?ci(t):[]};return n&&(a.redirectedFrom=ui(n,i)),Object.freeze(a)}function si(t){if(Array.isArray(t))return t.map(si);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=si(t[n]);return e}return t}var li=ai(null,{path:"/"});function ci(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function ui(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||ii)(r)+i}function fi(t,e){return e===li?t===e:!!e&&(t.path&&e.path?t.path.replace(oi,"")===e.path.replace(oi,"")&&t.hash===e.hash&&di(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&di(t.query,e.query)&&di(t.params,e.params)))}function di(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?di(r,i):String(r)===String(i)}))}function pi(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",c=s.path?pi(s.path,l,n||i.append):l,u=function(t,e,n){void 0===e&&(e={});var r,i=n||ri;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(s.query,i.query,r&&r.options.parseQuery),f=i.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:u,hash:f}}var Mi,$i=[String,Object],qi=[String,Array],Ri=function(){},Ii={name:"RouterLink",props:{to:{type:$i,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:qi,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,d=null==u?"router-link-exact-active":u,p=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?ai(null,Li(a.redirectedFrom),null,n):a;l[h]=fi(r,m),l[p]=this.exact?l[h]:function(t,e){return 0===t.path.replace(oi,"/").indexOf(e.path.replace(oi,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var v=function(t){Fi(t)&&(e.replace?n.replace(o,Ri):n.push(o,Ri))},y={click:Fi};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=v})):y[this.event]=v;var g={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:v,isActive:l[p],isExactActive:l[h]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?t():t("span",{},b)}if("a"===this.tag)g.on=y,g.attrs={href:s};else{var _=function t(e){if(e)for(var n,r=0;r-1&&(s.params[d]=n.params[d]);return s.path=Pi(u.path,s.params),l(u,s,a)}if(s.path){s.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function uo(t){return function(e,n,r){var i=!1,o=0,a=null;fo(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,c=mo((function(e){var i;((i=e).__esModule||ho&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Mi.extend(e),n.components[s]=e,--o<=0&&r()})),u=mo((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Gr(t)?t:new Error(e),r(a))}));try{l=t(c,u)}catch(t){u(t)}if(l)if("function"==typeof l.then)l.then(c,u);else{var f=l.component;f&&"function"==typeof f.then&&f.then(c,u)}}})),i||r()}}function fo(t,e){return po(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function po(t){return Array.prototype.concat.apply([],t)}var ho="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function mo(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var vo=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);vo._name="NavigationDuplicated";var yo=function(t,e){this.router=t,this.base=function(t){if(!t)if(Di){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=li,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function go(t,e,n,r){var i=fo(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=Mi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return po(r?i.reverse():i)}function bo(t,e){if(e)return function(){return t.apply(e,arguments)}}yo.prototype.listen=function(t){this.cb=t},yo.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},yo.prototype.onError=function(t){this.errorCbs.push(t)},yo.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},yo.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){!Zr(vo,t)&&Gr(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)};if(fi(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o(new vo(t));var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Oo(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Eo(t){ao?so(Oo(t)):window.location.hash=t}function Ao(t){ao?lo(Oo(t)):window.location.replace(Oo(t))}var So=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}),(function(t){Zr(vo,t)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(yo),jo=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Ui(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ao&&!1!==t.fallback,this.fallback&&(e="hash"),Di||(e="abstract"),this.mode=e,e){case"history":this.history=new _o(this,t.base);break;case"hash":this.history=new xo(this,t.base,this.fallback);break;case"abstract":this.history=new So(this,t.base);break;default:0}},To={currentRoute:{configurable:!0}};function No(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}jo.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},To.currentRoute.get=function(){return this.history&&this.history.current},jo.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof _o)n.transitionTo(n.getCurrentLocation());else if(n instanceof xo){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},jo.prototype.beforeEach=function(t){return No(this.beforeHooks,t)},jo.prototype.beforeResolve=function(t){return No(this.resolveHooks,t)},jo.prototype.afterEach=function(t){return No(this.afterHooks,t)},jo.prototype.onReady=function(t,e){this.history.onReady(t,e)},jo.prototype.onError=function(t){this.history.onError(t)},jo.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},jo.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},jo.prototype.go=function(t){this.history.go(t)},jo.prototype.back=function(){this.go(-1)},jo.prototype.forward=function(){this.go(1)},jo.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},jo.prototype.resolve=function(t,e,n){var r=Li(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?hi(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},jo.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==li&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jo.prototype,To),jo.install=function t(e){if(!t.installed||Mi!==e){t.installed=!0,Mi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Xr),e.component("RouterLink",Ii);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},jo.version="3.1.3",Di&&window.Vue&&window.Vue.use(jo);var Po=jo;function Lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mo(t){for(var e=1;eДля доступа к определенным разделам необходимо иметь соответствующий статус."}},computed:Mo({},Object(g.c)({isLogged:"auth/isLogged"})),created:function(){var t=this;this.$notification.info({title:this.title,message:this.message}),this.authInitialize().then((function(){t.isLogged&&t.$router.push("/")})).catch((function(t){console.error(t)}))},methods:Mo({},Object(g.b)({authLogin:"auth/login",authInitialize:"auth/initialize"}),{signIn:function(){var t=this;this.isProcessing=!0,this.errors={},this.authLogin(this.form).then((function(e){window.location.href=t.$router.options.base})).catch((function(e){t.isProcessing=!1,e.response&&[422,429].includes(e.response.status)&&(t.errors=e.response.data.errors)}))},resetErrors:function(t){this.errors={}}})},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("link",{attrs:{href:t.skin("css/login.css"),rel:"stylesheet",type:"text/css"}}),t._v(" "),n("div",{staticClass:"login__box col-sm-offset-4 col-sm-4 col-xs-offset-2 col-xs-8"},[n("h2",{staticClass:"login__title"},[n("a",{attrs:{href:t.url("/"),target:"_blank"}},[t._v(t._s(t.app_name))])]),t._v(" "),n("hr"),t._v(" "),t.isLogged?t._e():n("form",{staticClass:"form-horizontal",on:{submit:function(e){return e.preventDefault(),t.signIn(e)},input:t.resetErrors}},[n("fieldset",[n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email",required:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t._v(" "),t._l(t.errors.email,(function(e){return n("small",{staticClass:"error__control",domProps:{innerHTML:t._s(e)}})}))],2),t._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[t._m(1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Password",required:""},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),t._v(" "),t._l(t.errors.password,(function(e){return n("small",{staticClass:"error__control"},[t._v(t._s(e))])}))],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("button",{staticClass:"btn btn-outline-secondary pull-right",attrs:{type:"submit",disabled:t.isProcessing}},[t._v("Войти")])]),t._v(" "),t._m(2)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"fa fa-user"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"fa fa-lock"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"copyright"},[this._v("2018-2019 © "),e("a",{attrs:{href:"https://github.com/russsiq/bixbite",target:"_blank"}},[this._v("BixBite CMS")])])}],!1,null,null,null).exports,meta:{title:"Вход в административную панель."}}];function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fo(t){for(var e=1;e1&&(t.push(1),this.rangeStart>2&&t.push("..."));for(var e=this.rangeStart;e<=this.rangeEnd;e++)t.push(e);return this.rangeEnd1&&t.push("..."),t.push(this.totalPages)),t},activeClass:function(){var t=this;return function(e){return{active:e===t.currentPage}}}}),methods:{changePage:function(t){t!==this.currentPage&&this.$emit("paginate",t)}}};n("C3Lh");function Go(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Zo(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Go(o,r,i,a,s,"next",t)}function s(t){Go(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xo(t){for(var e=1;e1?n("ul",{staticClass:"pagination",attrs:{role:"navigation"}},[t._l(t.pages,(function(e){return["..."===e?n("li",{staticClass:"page-item disabled"},[n("span",{staticClass:"page-link"},[t._v("...")])]):n("li",{staticClass:"page-item",class:t.activeClass(e)},[n("a",{staticClass:"page-link",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.changePage(e)}}},[t._v(t._s(e))])])]}))],2):t._e()}),[],!1,null,"0a804cb1",null).exports},props:{active:Boolean,massAction:Boolean,model:{type:Function,required:!0}},data:function(){return{filterCandidates:[],queryWatcher:null,query:{order_column:"id",order_direction:"desc",filter_match:"and",limit:10,page:1},limits:[5,10,20,50]}},computed:Xo({},Object(g.c)({meta:"meta/all"}),{orderableColumns:function(){return this.meta.orderableColumns||[]},allowedFilters:function(){return this.$props.model.state().allowedFilters||{}},collection:function(){return this.query.page?this.$props.model.query().withAll().orderBy(this.query.order_column,this.query.order_direction).all():[]},loading:function(){return this.$props.model.getters("loading")},fetchOperators:function(){var t=this;return function(e){return t.availableOperators().filter((function(t){return e.column&&t.parent.includes(e.type)}))}},appliedFilters:function(){return this.filterCandidates.filter((function(t){return!!t.column}))},filters:function(){var t={};return this.appliedFilters.map((function(e,n){t["f[".concat(n,"][column]")]=e.column,t["f[".concat(n,"][operator]")]=e.operator,t["f[".concat(n,"][query_1]")]=e.query_1,e.query_2&&(t["f[".concat(n,"][query_2]")]=e.query_2)})),t}}),filters:{title:function(t){return t?t=(t=t.toString().replace(/_/g," ").replace("."," ")).charAt(0).toUpperCase()+t.slice(1):""}},mounted:function(){this.changePage(parseInt(this.$router.currentRoute.query.page,10)||1),this.queryWatcher=this.$watch("query",Ho()(this.applyChange,1e3),{immediate:!0,deep:!0})},destroyed:function(){},methods:{changeOrderDirection:function(){this.query=Object.assign({},this.query,{order_direction:"desc"===this.query.order_direction?"asc":"desc",page:1})},changePage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.query.page=parseInt(t,10)},selectColumn:function(t){var e=this,n=this.filterCandidates[t].column||null;if(n){var r=Object.keys(this.allowedFilters).find((function(t){return e.allowedFilters[t].hasOwnProperty(n)})),i=this.allowedFilters[r][n];this.filterCandidates[t].type=i.type,this.filterCandidates[t].values=i.values?i.values.split(","):null;var o=this.availableOperators().find((function(t){return t.parent.includes(i.type)})).name;this.filterCandidates[t].operator=o,this.selectOperator(t)}else this.removeFilter(t)},selectOperator:function(t){var e=this,n=this.filterCandidates[t].operator||null;if(n){var r=this.availableOperators().find((function(r){return r.name===n&&r.parent.includes(e.filterCandidates[t].type)})).component,i=null,o=null;switch(r){case"single":case"double":break;case"boolean":i=1;break;case"enum":i=this.filterCandidates[t].values[0]||null;break;case"datetime_1":i=28,o="days";break;case"datetime_2":i="today"}this.filterCandidates[t].component=r,this.filterCandidates[t].query_1=i,this.filterCandidates[t].query_2=o}},addFilter:function(){this.filterCandidates.push({column:"",type:null,component:null,operator:"",values:null,query_1:null,query_2:null})},removeFilter:function(t){this.filterCandidates.splice(t,1),this.applyFilter()},resetFilter:function(){this.filterCandidates.splice(0),this.applyFilter()},applyFilter:function(){this.query=Object.assign({},this.query,{page:1})},applyChange:function(){this.fetch()},fetch:(ta=Zo(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.clearList();case 2:return t.next=4,this.$props.model.$fetch({query:Xo({},this.filters,{},this.query)});case 4:case"end":return t.stop()}}),t,this)}))),function(){return ta.apply(this,arguments)}),clearList:(Qo=Zo(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)}))),function(){return Qo.apply(this,arguments)}),availableOperators:function(){return[{title:"equal to",name:"equal_to",parent:["numeric","string"],component:"single"},{title:"not equal to",name:"not_equal_to",parent:["numeric","string"],component:"single"},{title:"equal to",name:"boolean",parent:["boolean"],component:"boolean"},{title:"equal to",name:"equal_to_count",parent:["counter"],component:"single"},{title:"not equal to",name:"not_equal_to_count",parent:["counter"],component:"single"},{title:"less than",name:"less_than_count",parent:["counter"],component:"single"},{title:"greater than",name:"greater_than_count",parent:["counter"],component:"single"},{title:"less than",name:"less_than",parent:["numeric"],component:"single"},{title:"greater than",name:"greater_than",parent:["numeric"],component:"single"},{title:"between",name:"between",parent:["numeric"],component:"double"},{title:"not between",name:"not_between",parent:["numeric"],component:"double"},{title:"contains",name:"contains",parent:["string"],component:"single"},{title:"starts with",name:"starts_with",parent:["string"],component:"single"},{title:"ends with",name:"ends_with",parent:["string"],component:"single"},{title:"equal to",name:"equal_to",parent:["enum"],component:"enum"},{title:"not equal to",name:"not_equal_to",parent:["enum"],component:"enum"},{title:"in the past",name:"in_the_past",parent:["datetime"],component:"datetime_1"},{title:"in the next",name:"in_the_next",parent:["datetime"],component:"datetime_1"},{title:"in the period",name:"in_the_period",parent:["datetime"],component:"datetime_2"}]}}},na=(n("99co"),qo(ea,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"filterable"},[n("div",{staticClass:"card d-print-none"},[n("div",{staticClass:"card-header d-flex"},[t._t("preaction")],2)]),t._v(" "),t.active?n("div",{staticClass:"card"},[n("div",{staticClass:"card-body filter"},[t._l(t.filterCandidates,(function(e,r){return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-4 form-group filter-column"},[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.column,expression:"filter.column"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"column",n.target.multiple?r:r[0])},function(e){return t.selectColumn(r)}]}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v(t._s(t._f("trans")("Select a filter")))]),t._v(" "),t._l(t.allowedFilters,(function(e,r){return n("optgroup",{attrs:{label:t._f("trans")(t._f("title")(r))}},t._l(e,(function(e,r){return n("option",{domProps:{value:r}},[t._v(t._s(t._f("trans")(t._f("title")(r))))])})),0)}))],2),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"filter-remove btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return t.removeFilter(r)}}},[t._v("x")])])])]),t._v(" "),n("div",{staticClass:"col col-md-4 form-group filter-operator"},[e.column?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.operator,expression:"filter.operator"}],staticClass:"form-control",on:{change:[function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"operator",n.target.multiple?r:r[0])},function(e){return t.selectOperator(r)}]}},t._l(t.fetchOperators(e),(function(e){return n("option",{domProps:{value:e.name}},[t._v(t._s(t._f("trans")(e.title)))])})),0)]:t._e()],2),t._v(" "),n("div",{staticClass:"col col-md-4 form-group filter-query"},[n("div",{staticClass:"input-group"},["single"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("div",{staticClass:"invalid-feedback"},[t._v("Valid first name is required.")])]:t._e(),t._v(" "),"double"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_2,expression:"filter.query_2"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_2},on:{input:function(n){n.target.composing||t.$set(e,"query_2",n.target.value)}}})]:t._e(),t._v(" "),"enum"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},t._l(e.values,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(e)))])})),0)]:t._e(),t._v(" "),"boolean"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"0"}},[t._v("Нет")]),t._v(" "),n("option",{attrs:{value:"1"}},[t._v("Да")])])]:t._e(),t._v(" "),"datetime_1"===e.component?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.query_1},on:{input:function(n){n.target.composing||t.$set(e,"query_1",n.target.value)}}}),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_2,expression:"filter.query_2"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_2",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"hours"}},[t._v(t._s(t._f("trans")("hours")))]),t._v(" "),n("option",{attrs:{value:"days"}},[t._v(t._s(t._f("trans")("days")))]),t._v(" "),n("option",{attrs:{value:"months"}},[t._v(t._s(t._f("trans")("months")))]),t._v(" "),n("option",{attrs:{value:"years"}},[t._v(t._s(t._f("trans")("years")))])])]:t._e(),t._v(" "),"datetime_2"===e.component?[n("select",{directives:[{name:"model",rawName:"v-model",value:e.query_1,expression:"filter.query_1"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"query_1",n.target.multiple?r:r[0])}}},[n("option",{attrs:{value:"yesterday"}},[t._v(t._s(t._f("trans")("yesterday")))]),t._v(" "),n("option",{attrs:{value:"today"}},[t._v(t._s(t._f("trans")("today")))]),t._v(" "),n("option",{attrs:{value:"tomorrow"}},[t._v(t._s(t._f("trans")("tomorrow")))]),t._v(" "),n("option",{attrs:{value:"last_month"}},[t._v(t._s(t._f("trans")("last month")))]),t._v(" "),n("option",{attrs:{value:"this_month"}},[t._v(t._s(t._f("trans")("this month")))]),t._v(" "),n("option",{attrs:{value:"next_month"}},[t._v(t._s(t._f("trans")("next month")))]),t._v(" "),n("option",{attrs:{value:"last_year"}},[t._v(t._s(t._f("trans")("last year")))]),t._v(" "),n("option",{attrs:{value:"this_year"}},[t._v(t._s(t._f("trans")("this year")))]),t._v(" "),n("option",{attrs:{value:"next_year"}},[t._v(t._s(t._f("trans")("next year")))])])]:t._e()],2)])])})),t._v(" "),n("div",{staticClass:"filter-controls form-group d-flex"},[n("button",{staticClass:"btn btn-outline-primary mr-auto",attrs:{type:"button"},on:{click:t.addFilter}},[t._v(t._s(t._f("trans")("Add filter")))]),t._v(" "),t.filterCandidates.length&&t.filterCandidates[0].query_1?[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"button"},on:{click:t.applyFilter}},[t._v(t._s(t._f("trans")("Apply")))])]:t._e(),t._v(" "),t.appliedFilters.length>0?n("button",{staticClass:"btn btn-outline-dark ml-2",attrs:{type:"reset"},on:{click:t.resetFilter}},[t._v(t._s(t._f("trans")("Reset")))]):t._e()],2)],2)]):t._e(),t._v(" "),n("div",{staticClass:"card card-table"},[t.collection.length?n("div",{staticClass:"card-header"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-6"},[n("pagination",{staticClass:"justify-content-eend",on:{paginate:t.changePage}})],1),t._v(" "),n("div",{staticClass:"col col-md-6"},[n("div",{staticClass:"d-flex"},[n("div",{staticClass:"has-float-label ml-auto mr-2"},[n("label",[t._v(t._s(t._f("trans")("Count")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.query.limit,expression:"query.limit"}],staticClass:"form-control",attrs:{disabled:t.loading},on:{input:function(e){return t.changePage(1)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.query,"limit",e.target.multiple?n:n[0])}}},t._l(t.limits,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"has-float-label"},[n("label",[t._v(t._s(t._f("trans")("Order by")))]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.query.order_column,expression:"query.order_column"}],staticClass:"form-control",attrs:{disabled:t.loading},on:{input:function(e){return t.changePage(1)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.query,"order_column",e.target.multiple?n:n[0])}}},[t._l(t.orderableColumns,(function(e){return[n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(t._f("title")(e))))])]}))],2),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-secondary bg-white",attrs:{type:"button"},on:{click:t.changeOrderDirection}},["asc"===t.query.order_direction?n("span",[t._v("↑")]):n("span",[t._v("↓")])])])])])])])])]):t._e(),t._v(" "),n("div",{staticClass:"card-body table-responsive"},[t.collection.length?n("table",{staticClass:"table table-sm table-hover"},[n("thead",[t._t("thead")],2),t._v(" "),n("tbody",[t._l(t.collection,(function(e){return t._t("row",null,{row:e})}))],2),t._v(" "),n("tfoot",[t._t("tfoot")],2)]):t.loading?n("p",{staticClass:"alert alert-info text-center"},[t._v("Список загружается, пожалуйста, подождите ...")]):n("p",{staticClass:"alert alert-info text-center"},[t._v("Нет информации для отображения.")])]),t._v(" "),t.collection.length?n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col col-md-6"},[n("pagination",{staticClass:"justify-content-eend",on:{paginate:t.changePage}})],1),t._v(" "),t.massAction?n("div",{staticClass:"col col-md-6"},[n("div",{staticClass:"d-flex d-print-none"},[n("div",{staticClass:"has-float-label ml-auto"},[n("label",{attrs:{for:""}},[t._v(t._s(t._f("trans")("Mass action")))]),t._v(" "),t._t("action")],2)])]):t._e()])]):t._e()])])}),[],!1,null,null,null).exports);function ra(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function ia(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ra(o,r,i,a,s,"next",t)}function s(t){ra(o,r,i,a,s,"throw",t)}a(void 0)}))}}var oa,aa,sa=qo({name:"articles",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{selected:[],selectedAll:!1,massAction:"",filterable:{model:this.$props.model,active:!1,massAction:!0}}},computed:{editpage:function(){return function(t){return{name:"articles.edit",params:{id:t.id}}}},classState:function(){return function(t){return{published:"fa fa-check text-success",unpublished:"fa fa-times text-warning",draft:"fa fa-ban text-danger"}[t]||"fa fa-question text-danger"}},classIsFavorite:function(){return function(t){return t?"fa fa-star text-warning":"fa fa-star-o text-muted"}},classIsCatpinned:function(){return function(t){return t?"fa fa-thumb-tack fa-rotate-90 text-danger":"fa fa-thumb-tack text-muted"}},classOnMainpage:function(){return function(t){return t?"fa fa-home text-success":"fa fa-home text-muted"}}},mounted:(aa=ia(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("articles");case 2:case"end":return t.stop()}}),t,this)}))),function(){return aa.apply(this,arguments)}),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{toggleFilter:function(){this.filterable.active=!this.filterable.active},toggleStateArticle:function(t){var e="published"!==t.state?"published":"draft";t.categories.length&&this.massUpdate([t.id],e)},selectAll:function(){if(this.selected=[],!this.selectedAll){var t=this.$props.model.all();this.selected=t.map((function(t){return t.id}))}},applyMassAction:function(){if(!this.selected.length)return Notification.warning({message:"Пожалуйста, выберите записи."});if(!this.massAction)return Notification.warning({message:"Пожалуйста, выберите действие."});var t=this.massAction.toString();return t.startsWith("delete")?this.massDelete(this.selected,t):this.massUpdate(this.selected,t)},massUpdate:(oa=ia(i.a.mark((function t(e,n){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O("".concat(Pageinfo.api_url,"/articles"),{articles:e,mass_action:n});case 2:return r=t.sent,t.next=5,this.$props.model.insertOrUpdate({where:function(t){return e.includes(t.id)},data:r.data.data});case 5:t.sent;case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return oa.apply(this,arguments)}),massDelete:function(t){var e=this;t.map((function(t){return e.destroy({id:t})}))},create:function(){var t=prompt("Укажите заголовок новой записи: ","Черновик");t&&this.$props.model.$create({data:{title:t}})},destroy:function(t){confirm("Вы точно хотите удалить эту запись [".concat(t.id,"] с прикрепленными файлами?"))&&this.$props.model.$delete({params:{id:t.id}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.create}},[n("i",{staticClass:"fa fa-plus"})]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"},[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"categories"},title:"Категории"}},[n("i",{staticClass:"fa fa-folder-open-o"})]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields"},title:"Дополнительные поля"}},[n("span",{staticClass:"as-icon"},[t._v("χφ")])]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"articles.settings"},title:"Настройки"}},[n("i",{staticClass:"fa fa-cogs"})])],1),t._v(" "),n("div",{staticClass:"btn-group ml-auto"},[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.toggleFilter}},[n("i",{staticClass:"fa fa-filter"})]),t._v(" "),n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",onclick:"window.print()"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Заголовок")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Категория")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Автор")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("th",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-comments"})]),t._v(" "),n("th",{staticClass:"hidden-xs"}),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("th",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{staticClass:"d-block",attrs:{to:t.editpage(r)}},[t._v(t._s(r.title))]),t._v("\n "+t._s(r.created_at)+" "+t._s(r.updated_at||"")+"\n ")],1),t._v(" "),n("td",{staticClass:"hidden-xs"},t._l(r.categories,(function(e){return n("span",{staticClass:"cat-links mr-1"},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])})),0),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.user&&r.user.name))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.views))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.comments_count))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[r.files_count>0?n("i",{staticClass:"fa fa-paperclip",attrs:{title:"К записи прикреплены файлы."}}):t._e()]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.toggleStateArticle(r)}}},[n("i",{class:t.classState(r.state),attrs:{title:t.__(r.state)}})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"is_favorite")}}},[n("i",{class:t.classIsFavorite(r.is_favorite)})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"is_catpinned")}}},[n("i",{class:t.classIsCatpinned(r.is_catpinned)})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.massUpdate([r.id],"on_mainpage")}}},[n("i",{class:t.classOnMainpage(r.on_mainpage)})]),t._v(" "),"published"===r.state?n("a",{staticClass:"btn btn-link",attrs:{href:r.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})]):n("button",{staticClass:"btn btn-link",attrs:{type:"button",disabled:""}},[n("i",{staticClass:"fa fa-eye-slash text-muted"})]),t._v(" "),n("router-link",{staticClass:"btn btn-link",attrs:{to:t.editpage(r)}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:r.id,checked:Array.isArray(t.selected)?t._i(t.selected,r.id)>-1:t.selected},on:{change:function(e){var n=t.selected,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=r.id,s=t._i(n,a);i.checked?s<0&&(t.selected=n.concat([a])):s>-1&&(t.selected=n.slice(0,s).concat(n.slice(s+1)))}else t.selected=o}}})])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Заголовок")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Категория")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Автор")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("td",{staticClass:"hidden-xs"},[n("i",{staticClass:"fa fa-comments"})]),t._v(" "),n("td",{staticClass:"hidden-xs"}),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"action",fn:function(){return[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.massAction,expression:"massAction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.massAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v("Выберите действие")]),t._v(" "),n("optgroup",{attrs:{label:"Статус"}},[n("option",{attrs:{value:"published"}},[t._v("Опубликовать")]),t._v(" "),n("option",{attrs:{value:"unpublished"}},[t._v("Отправить на модерацию")]),t._v(" "),n("option",{attrs:{value:"draft"}},[t._v("Сохранить как черновик")])]),t._v(" "),n("optgroup",{attrs:{label:"Главная страница"}},[n("option",{attrs:{value:"on_mainpage"}},[t._v("Отобразить/скрыть на главной")])]),t._v(" "),n("optgroup",{attrs:{label:"Комментарии"}},[n("option",{attrs:{value:"allow_com"}},[t._v("Разрешить/запретить комментарии")])]),t._v(" "),n("optgroup",{attrs:{label:"Дата"}},[n("option",{attrs:{value:"currdate"}},[t._v("Установить текущую дату")])]),t._v(" "),n("optgroup",{attrs:{label:"Удалить"}},[n("option",{attrs:{value:"delete"}},[t._v("Удалить отмеченные")])])]),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"submit"},on:{click:t.applyMassAction}},[t._v("Применить")])])])]},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,la=n("kzlf"),ca=n.n(la),ua=n("V5G8"),fa=n.n(ua),da={name:"toolbar",components:{},props:{},data:function(){return{}},created:function(){},mounted:function(){this.$nextTick((function(){setTimeout((function(){}),100)}))},methods:{}},pa=(n("Cyu2"),qo(da,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"toolbar-container"}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),n("span",{staticClass:"ql-formats"},[n("select",{staticClass:"ql-header"},[n("option",{attrs:{selected:"selected"}},[t._v(t._s(t._f("trans")("Normal")))]),t._v(" "),n("option",{attrs:{value:"4"}},[t._v(t._s(t._f("trans")("Heading 4")))]),t._v(" "),n("option",{attrs:{value:"3"}},[t._v(t._s(t._f("trans")("Heading 3")))]),t._v(" "),n("option",{attrs:{value:"2"}},[t._v(t._s(t._f("trans")("Heading 2")))])])]),t._v(" "),t._m(5),t._v(" "),n("div",{attrs:{id:"sub-toolbar"}},[t._m(6),t._v(" "),t._m(7),t._v(" "),n("span",{staticClass:"ql-formats"},[n("select",{ref:"ql-shortcodes",staticClass:"ql-shortcodes"},[n("option",{attrs:{value:"[[app_url]]"}},[t._v(t._s(t._f("trans")("app_url")))]),t._v(" "),n("option",{attrs:{value:"[[organization]]"}},[t._v(t._s(t._f("trans")("organization")))]),t._v(" "),n("option",{attrs:{value:"[[address]]"}},[t._v(t._s(t._f("trans")("address")))]),t._v(" "),n("option",{attrs:{value:"[[contact_telephone]]"}},[t._v(t._s(t._f("trans")("contact_telephone")))]),t._v(" "),n("option",{attrs:{value:"[[contact_email]]"}},[t._v(t._s(t._f("trans")("contact_email")))])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("select",{staticClass:"ql-save"},[e("option",{attrs:{value:'{"state":"published"}'}},[this._v("Опубликовать")]),this._v(" "),e("option",{attrs:{value:'{"state":"unpublished"}'}},[this._v("Отправить на модерацию")]),this._v(" "),e("option",{attrs:{value:'{"state":"draft"}'}},[this._v("Оставить в черновиках")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-bold"}),this._v(" "),e("button",{staticClass:"ql-italic"}),this._v(" "),e("button",{staticClass:"ql-underline d-none d-md-block"}),this._v(" "),e("button",{staticClass:"ql-strike d-none d-md-block"}),this._v(" "),e("button",{staticClass:"ql-script d-none d-md-block",attrs:{value:"sub"}}),this._v(" "),e("button",{staticClass:"ql-script d-none d-md-block",attrs:{value:"super"}}),this._v(" "),e("button",{staticClass:"ql-link"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats d-none d-md-inline-block"},[e("select",{staticClass:"ql-color"}),this._v(" "),e("select",{staticClass:"ql-background"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-list",attrs:{value:"ordered"}}),this._v(" "),e("button",{staticClass:"ql-list",attrs:{value:"bullet"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats d-none d-md-inline-block"},[e("button",{staticClass:"ql-align",attrs:{value:""}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"center"}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"right"}}),this._v(" "),e("button",{staticClass:"ql-align",attrs:{value:"justify"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-clean"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-blockquote"}),this._v(" "),e("button",{staticClass:"ql-code-block"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"ql-formats"},[e("button",{staticClass:"ql-image"})])}],!1,null,null,null).exports);function ha(t){return(ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ma(t,e){for(var n=0;n({}),computed:{hasHeaderSlot(){return!!this.$slots.modal__header},sizeClass(){return"modal__dialog-"+this.$props.size}},created(){document.body.classList.add("overflow-hidden"),document.addEventListener("keydown",this.handleEscape)},destroyed(){document.body.classList.remove("overflow-hidden"),document.removeEventListener("keydown",this.handleEscape)},methods:{handleClick(t){t.target.classList.contains("modal__overlay")&&this.close()},handleEscape(t){t.stopPropagation(),27==t.keyCode&&this.close()},close(){this.$emit("close")}}},ja=(n("Wncm"),qo(Sa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"modal__fade"}},[n("div",{staticClass:"modal__overlay",on:{click:t.handleClick}},[n("div",{staticClass:"modal__dialog",class:t.sizeClass},[n("div",{staticClass:"modal__content"},[t.hasHeaderSlot?n("div",{staticClass:"modal__header"},[n("h5",{staticClass:"modal__title"},[t._t("modal__header")],2),t._v(" "),n("button",{staticClass:"modal__close",attrs:{type:"button"},on:{click:t.close}},[t._v("×")])]):t._e(),t._v(" "),n("div",{staticClass:"modal__body"},[t._t("modal__body")],2),t._v(" "),n("div",{staticClass:"modal__footer"},[t._t("modal__footer",[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:t.close}},[t._v("Close")])])],2)])])])])}),[],!1,null,"5236e476",null).exports),Ta={show:(t={})=>new(f.a.extend(ja))({el:document.createElement("div"),propsData:Object.assign({active:!0},t)})};ja.install=function(t,e){t.prototype.$modal=Ta};var Na=ja,Pa={name:"image-preview",components:{modal:Na},props:{image_id:{type:Number,default:null}},data:function(){return{modalShown:!1}},computed:{image:function(){return jn.query().withAll().find(this.image_id)}},methods:{editImage:function(){this.modalShown=!0},updateImage:function(){var t=this;jn.$update({params:{id:this.image_id},data:{title:this.image.title,description:this.image.description}}).then((function(e){t.closeModal()}))},deleteImage:function(){confirm("Вы уверены, что хотите удалить этот файл с сервера?")&&(this.$emit("destroy"),jn.$delete({params:{id:this.image_id}}))},closeModal:function(){this.modalShown=!1}}};n("jfqp");function La(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var Ma,$a={name:"image-uploader",components:{"image-preview":qo(Pa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[t.image.id?n("div",{staticClass:"image__preview"},[n("img",{attrs:{src:t.image.url}}),t._v(" "),n("div",{staticClass:"btn-toolbar"},[n("button",{staticClass:"btn btn-sm btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.editImage(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-sm btn-outline-secondary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.deleteImage(e)}}},[n("i",{staticClass:"fa fa-trash"})])])]):t._e(),t._v(" "),t.modalShown?n("modal",{on:{close:function(t){}}},[n("template",{slot:"modal__header"},[t._v("Редактирование изображения")]),t._v(" "),n("template",{slot:"modal__body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Заголовок")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.image.title,expression:"image.title"}],staticClass:"form-control",attrs:{type:"text",autocomplete:"off",required:""},domProps:{value:t.image.title},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.image,"title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Описание")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.image.description,expression:"image.description"}],staticClass:"form-control noresize",attrs:{rows:"4"},domProps:{value:t.image.description},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.image,"description",e.target.value)}}})])]),t._v(" "),n("template",{slot:"modal__footer"},[n("button",{staticClass:"btn btn-outline-success mr-2",attrs:{type:"button"},on:{click:t.updateImage}},[t._v("Сохранить")]),t._v(" "),n("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Отменить")])])],2):t._e()],1)}),[],!1,null,"6b28d2b2",null).exports},props:{value:{type:Number,default:null}},data:function(){return{state:null,errors:[]}},methods:{upload:(Ma=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){La(o,r,i,a,s,"next",t)}function s(t){La(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(e){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.state="uploading",this.errors=[],(n=new FormData).append("file",this.takeFileFromInput(e,"image.*")),t.next=7,jn.$create({data:n});case 7:r=t.sent,this.state="uploaded",this.$emit("input",r.id),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),!t.t0.response&&console.log(t.t0),this.state="error",this.destroy();case 17:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(t){return Ma.apply(this,arguments)}),takeFileFromInput:function(t,e){var n=t.target.files;if(!n.length)throw new Error("Необходимо выбрать файл.");if(!n[0].type.match(e))throw new Error("Выбранный вами файл в данный момент не поддерживается.");return n[0]},destroy:function(){this.$emit("input",null)},onClickHandler:function(t){}}},qa=(n("4erp"),qo($a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"image__uploader",attrs:{for:"image__uploader_"+t._uid},on:{click:t.onClickHandler}},[t.value?n("image-preview",{attrs:{image_id:t.value},on:{destroy:t.destroy}}):n("div",{staticClass:"image__uploader__states"},[n("input",{staticClass:"image__uploader__input",attrs:{id:"image__uploader_"+t._uid,type:"file",accept:"image/*"},on:{change:t.upload}}),t._v(" "),"uploading"==t.state?n("div",{staticClass:"text-primary"},[n("i",{staticClass:"fa fa-4x fa-spinner fa-spin"})]):"error"==t.state?n("div",{staticClass:"text-warning"},[n("i",{staticClass:"fa fa-4x fa-exclamation-triangle"})]):n("div",[n("i",{staticClass:"fa fa-4x fa-file-image-o"})])])],1)}),[],!1,null,"abb1b27c",null).exports),Ra=qo({name:"input-datetime-local",props:{value:{type:[String,Date],default:null,required:!1}},data:function(){return{}},computed:{localValue:function(){return this.$props.value&&this.$props.value.replace(" ","T").slice(0,16)}},methods:{onInputHandler:function(t){this.$emit("input",t.target.value)}}},(function(){var t=this.$createElement;return(this._self._c||t)("input",{attrs:{type:"datetime-local"},domProps:{value:this.localValue},on:{input:this.onInputHandler}})}),[],!1,null,null,null).exports,Ia={props:{value:{type:Array,default:[]}},data:function(){return{}},computed:{categories:function(){var t=Un.query().orderBy("position","asc").all(),e=this.getRootCategories(t);return this.getNestedCategories(e,0,t)}},methods:{getRootCategories:function(t){return t.filter((function(t){return!t.parent_id}))},getNestedCategories:function(t,e,n){var r=this,i=[];return t.forEach((function(t,o,a){(t=t.$toJson()).depth=e,t.disabled="string"==typeof t.alt_url,t.selected=r.$props.value.includes(t.id),t.title=" — ".repeat(t.depth)+t.title,i.push(t);var s=n.filter((function(e){return e.parent_id===t.id}));s.length&&(i=i.concat(r.getNestedCategories(s,e+1,n)))})),i},handleChange:function(t){this.$emit("input",Array.from(t.target.options).filter((function(t){return t.selected})).map((function(t){return Number(t.value)})))}}},Fa=(n("uvSl"),qo(Ia,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("select",{staticClass:"form-control",attrs:{multiple:""},on:{change:t.handleChange}},[t._l(t.categories,(function(e,r){return[n("option",{attrs:{disabled:e.disabled},domProps:{value:e.id,selected:e.selected}},[t._v(t._s(e.title))])]}))],2)}),[],!1,null,"eb1ad1ee",null));function Da(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function za(t){for(var e=1;e0},isPublished:function(){return"published"===this.form.state},article:function(){return this.$props.model.query().withAllRecursive().find(this.$props.id)},classState:function(){return function(t){return{published:"text-success",unpublished:"text-warning"}[t]||"text-danger"}},titleState:function(){return function(t){return{published:"опубликована",unpublished:"на модерации"}[t]||"черновик"}}}),watch:{"form.title":function(t,e){document.title=t}},created:function(){this.$props.model.$get({params:{id:this.$props.id}}).then(this.fillForm)},beforeDestroy:function(){clearTimeout(this.saveTimer),this.$props.model.deleteAll()},methods:{fillForm:function(t){this.form=Object.assign({},this.form,t),this.form.categories=this.form.categories.map((function(t){return t.id})),this.form.tags=this.form.tags.map((function(t){return t.title})).join(", "),this.saveTimer=setTimeout(this.update,this.saveInterval)},updateAttributesFromJson:function(t){for(var e in t)this.form.hasOwnProperty(e)&&(this.form[e]=t[e]);this.update()},updateContent:function(t){this.form.content=t},updateImage:function(t){this.form.image_id=t},update:function(){clearTimeout(this.saveTimer),this.model.$update({params:{id:this.$props.id},data:za({},this.form,{date_at:this.date_at})}).then(this.fillForm).catch((function(t){})).then((function(){}))},fileDelete:function(t){if(this.form.image_id!==t.id&&confirm("Вы точно хотите удалить это изображение [".concat(t.id,"] с сервера?"))){var e=Da(this.$children.find((function(t){return t.editor&&t.editor instanceof ca.a})).editor.root.querySelectorAll("figure")).slice(0).find((function(e){return+e.dataset.id===t.id}));e&&e.remove(),jn.$delete({params:{id:t.id}})}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.update(e)},keydown:function(e){return(e.type.indexOf("key")||83===e.keyCode)&&e.ctrlKey?(e.preventDefault(),t.update(e)):null}}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 col-md-6 col-lg-3 mb-2 order-first"},[n("image-uploader",{on:{input:this.update},model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-12 col-lg-5 mb-2 order-last"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Заголовок")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",placeholder:"Заголовок записи ...",autocomplete:"off",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}}),t._v(" "),t.isPublished?n("div",{staticClass:"input-group-append"},[n("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.form.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})])]):t._e()])]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Предисловие")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.teaser,expression:"form.teaser"}],staticClass:"form-control noresize",attrs:{rows:"4",maxlength:"255",placeholder:"Заинтересуйте свою аудиторию ..."},domProps:{value:t.form.teaser},on:{keydown:function(t){if(!t.type.indexOf("key")&&13!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"teaser",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-6 col-lg-4 mb-2 order-lg-last"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label",attrs:{for:"catmenu"}},[t._v("Категории")]),t._v(" "),n("categories-items",{attrs:{selected:t.form.categories},model:{value:t.form.categories,callback:function(e){t.$set(t.form,"categories",e)},expression:"form.categories"}})],1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 mb-2"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"card"},[t._m(0),t._v(" "),n("div",{staticClass:"c-ollapse",attrs:{id:"card_files"}},[t.article.files?n("ul",t._l(t.article.files,(function(e){return n("li",{on:{click:function(n){return t.fileDelete(e)}}},[t._v(t._s(e.id))])})),0):t._e()])]),t._v(" "),n("quill-editor",{attrs:{attachment:t.attachment,value:t.form.content},on:{input:t.updateContent,json:t.updateAttributesFromJson}})],1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-12 col-md-6 col-lg-8 mb-2"},[n("div",{attrs:{id:"accordion"}},[t.setting.manual_meta?n("div",{staticClass:"card"},[t._m(1),t._v(" "),n("div",{staticClass:"collapse",attrs:{id:"card_meta"}},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Описание")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"3",maxlength:"255"},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Ключевые слова")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.keywords,expression:"form.keywords"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",autocomplete:"off"},domProps:{value:t.form.keywords},on:{input:function(e){e.target.composing||t.$set(t.form,"keywords",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Инструкции для поисковых роботов")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.robots,expression:"form.robots"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"robots",e.target.multiple?n:n[0])}}},[n("option",{domProps:{value:null}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"noindex"}},[t._v("noindex")]),t._v(" "),n("option",{attrs:{value:"nofollow"}},[t._v("nofollow")]),t._v(" "),n("option",{attrs:{value:"none"}},[t._v("none")])])])])])]):t._e(),t._v(" "),n("div",{staticClass:"card"},[t._m(2),t._v(" "),n("div",{staticClass:"collapse",attrs:{id:"card_tags"}},[n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group has-float-label"},[n("label",{staticClass:"control-label"},[t._v("Теги")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tags,expression:"form.tags"}],staticClass:"form-control",attrs:{type:"text",maxlength:"255",autocomplete:"off"},domProps:{value:t.form.tags},on:{input:function(e){e.target.composing||t.$set(t.form,"tags",e.target.value)}}})])])])])]),t._v(" "),n("pre",[t._v(t._s(t.form))])]),t._v(" "),n("div",{staticClass:"col-sm-12 col-md-6 col-lg-4 mb-2"},[n("div",{staticClass:"card card-default card-table"},[n("div",{staticClass:"card-header"},[t._v("Сводная информация")]),t._v(" "),n("div",{staticClass:"card-body table-responsive"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[t._v("Автор")]),t._v(" "),n("td",[t._v(t._s(t.form.user&&t.form.user.name))])]),t._v(" "),n("tr",[n("td",[t._v("Состояние")]),t._v(" "),n("td",[n("span",{class:t.classState(t.form.state)},[t._v(t._s(t.titleState(t.form.state)))])])]),t._v(" "),n("tr",[n("td",[t._v("Создание")]),t._v(" "),n("td",[t._v(t._s(t.form.created_at))])]),t._v(" "),n("tr",[n("td",[t._v("Обновление")]),t._v(" "),n("td",[t._v(t._s(t.form.updated_at))])])])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Параметры публикации")]),t._v(" "),n("div",{staticClass:"card-body"},[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.on_mainpage,expression:"form.on_mainpage"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.on_mainpage)?t._i(t.form.on_mainpage,null)>-1:t.form.on_mainpage},on:{change:function(e){var n=t.form.on_mainpage,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"on_mainpage",n.concat([null])):o>-1&&t.$set(t.form,"on_mainpage",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"on_mainpage",i)}}}),t._v(" Отобразить на главной")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_pinned,expression:"form.is_pinned"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_pinned)?t._i(t.form.is_pinned,null)>-1:t.form.is_pinned},on:{change:function(e){var n=t.form.is_pinned,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_pinned",n.concat([null])):o>-1&&t.$set(t.form,"is_pinned",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_pinned",i)}}}),t._v(" Прикрепить на главной")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_catpinned,expression:"form.is_catpinned"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_catpinned)?t._i(t.form.is_catpinned,null)>-1:t.form.is_catpinned},on:{change:function(e){var n=t.form.is_catpinned,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_catpinned",n.concat([null])):o>-1&&t.$set(t.form,"is_catpinned",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_catpinned",i)}}}),t._v(" Прикрепить в категории")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_favorite,expression:"form.is_favorite"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_favorite)?t._i(t.form.is_favorite,null)>-1:t.form.is_favorite},on:{change:function(e){var n=t.form.is_favorite,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"is_favorite",n.concat([null])):o>-1&&t.$set(t.form,"is_favorite",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"is_favorite",i)}}}),t._v(" Добавить в избранное")])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Управление временем публикации")]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio"},domProps:{value:null,checked:t._q(t.date_at,null)},on:{change:function(e){t.date_at=null}}}),t._v(" Естесственное формирование даты")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio",value:"currdate"},domProps:{checked:t._q(t.date_at,"currdate")},on:{change:function(e){t.date_at="currdate"}}}),t._v(" Установить текущую дату")]),t._v(" "),n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.date_at,expression:"date_at"}],attrs:{type:"radio",value:"customdate"},domProps:{checked:t._q(t.date_at,"customdate")},on:{change:function(e){t.date_at="customdate"}}}),t._v(" Установить дату вручную")])]),t._v(" "),"customdate"===t.date_at?n("div",{staticClass:"form-group"},[n("input-datetime-local",{staticClass:"form-control",model:{value:t.form.created_at,callback:function(e){t.$set(t.form,"created_at",e)},expression:"form.created_at"}})],1):t._e()])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[t._v("Комментирование")]),t._v(" "),n("div",{staticClass:"card-body"},[n("select",{directives:[{name:"model",rawName:"v-model.number",value:t.form.allow_com,expression:"form.allow_com",modifiers:{number:!0}}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(e){var n="_value"in e?e._value:e.value;return t._n(n)}));t.$set(t.form,"allow_com",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"2"}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"1"}},[t._v("Разрешить")]),t._v(" "),n("option",{attrs:{value:"0"}},[t._v("Запретить")])])])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_files","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-files-o text-muted"}),this._v(" Прикрепленные файлы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_meta","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-header text-muted"}),this._v(" Мета данные")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("a",{staticClass:"d-block",attrs:{href:"#card_tags","data-toggle":"collapse"}},[e("i",{staticClass:"fa fa-tags text-muted"}),this._v(" Список тегов")])])}],!1,null,null,null).exports;function Ka(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Va(t){for(var e=1;e0}}),mounted:function(){Nr.$get({params:{id:this.entity}}).then(this.fillForm)},beforeDestroy:function(){Nr.deleteAll()},methods:{fillForm:function(t){t.map(this.addField)},addField:function(t){this.form=Object.assign({},this.form,Ga({},t.name,t.value))},onSubmit:function(t){var e=t.target;this.hignlightInvalidInput(e,e.elements),e.checkValidity()&&Nr.$update({params:{id:this.entity},data:Va({},this.form)})},hignlightInvalidInput:function(t,e){var n=Ka(e).slice(0);n.forEach((function(t){"checkbox"!==t.type&&t.setAttribute("required","required");var e=t.validity&&t.validity.valid;t.classList.toggle("is-invalid",!e)}));var r=n.find((function(t){return t.classList.contains("is-invalid")}));if(!r)return!0;var i=r.closest(".tab-pane"),o=t.querySelector('[href="#'.concat(i.id,'"]'));i&&o&&o.click(),r.focus(),r.validationMessage&&Notification.warning({message:r.validationMessage})}}}),Ya=[{path:"/articles",name:"articles",component:sa,meta:{title:"Список записей"},props:function(t){return{model:yr}}},{path:"/articles/:id/edit",name:"articles.edit",component:Ha,meta:{title:"Редактирование записи"},props:function(t){return{model:yr,id:parseInt(t.params.id,10)}}},{path:"/articles/settings",name:"articles.settings",component:qo({name:"articles-settings",extends:Za,data:function(){return{entity:"articles"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.views_used,expression:"form.views_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.views_used)?t._i(t.form.views_used,null)>-1:t.form.views_used},on:{change:function(e){var n=t.form.views_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"views_used",n.concat([null])):o>-1&&t.$set(t.form,"views_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"views_used",i)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[n("i",{staticClass:"fa fa-th-list"}),t._v(" Мета теги главной "),n("a",{attrs:{href:t.url("articles"),target:"_blank"}},[t._v("страницы записей")]),t._v(" на сайте")]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title,expression:"form.meta_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_description,expression:"form.meta_description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_keywords,expression:"form.meta_keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(6),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.paginate,expression:"form.paginate",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"8"},domProps:{value:t.form.paginate},on:{input:function(e){e.target.composing||t.$set(t.form,"paginate",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.order_by,expression:"form.order_by"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"order_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"id"}},[t._v("Идентификатор")]),t._v(" "),n("option",{attrs:{value:"title"}},[t._v("Заголовок")]),t._v(" "),n("option",{attrs:{value:"created_at"}},[t._v("Создание")]),t._v(" "),n("option",{attrs:{value:"updated_at"}},[t._v("Обновление")]),t._v(" "),n("option",{attrs:{value:"views"}},[t._v("Количество просмотров")]),t._v(" "),n("option",{attrs:{value:"comments_count"}},[t._v("Количество комментариев")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.direction,expression:"form.direction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"direction",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"desc"}},[t._v("По убыванию")]),t._v(" "),n("option",{attrs:{value:"asc"}},[t._v("По возрастанию")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(10),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.teaser_length,expression:"form.teaser_length",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"255"},domProps:{value:t.form.teaser_length},on:{input:function(e){e.target.composing||t.$set(t.form,"teaser_length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-create"}},[n("div",{staticClass:"card card-default"},[t._m(11),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.save_interval,expression:"form.save_interval"}],staticClass:"form-control",attrs:{type:"number",min:"60"},domProps:{value:t.form.save_interval},on:{input:function(e){e.target.composing||t.$set(t.form,"save_interval",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.manual_slug,expression:"form.manual_slug"}],staticClass:"form-control",attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(t.form.manual_slug)?t._i(t.form.manual_slug,null)>-1:t.form.manual_slug},on:{change:function(e){var n=t.form.manual_slug,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"manual_slug",n.concat([null])):o>-1&&t.$set(t.form,"manual_slug",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"manual_slug",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.manual_meta,expression:"form.manual_meta"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.manual_meta)?t._i(t.form.manual_meta,null)>-1:t.form.manual_meta},on:{change:function(e){var n=t.form.manual_meta,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"manual_meta",n.concat([null])):o>-1&&t.$set(t.form,"manual_meta",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"manual_meta",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(15),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item "},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-create","data-toggle":"tab"}},[this._v("Создание записи")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вести подсчет просмотров записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Дополнительный запрос к БД при нахождении на целевой странице записи.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет тайтла — нет поискового трафика.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Здесь можно ввести краткое описание страницы записей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Здесь можно ввести основные ключевые слова.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры по умолчанию")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество записей")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Число строк по умолчанию, извлекаемых из базы данных, для отображения на одной отдельно взятой странице или виджете.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Сортировка записей")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Сортировка записей при отображении на одной отдельно взятой странице или виджете.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Порядок сортировки")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество символов в аннотации к записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Если аннотация не указана, то будет сформирована путем обрезки начальной части текста записи.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Интервал автосохранения записи")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Задаётся в секундах.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ручное создание ярлыка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет - автоматическое создание.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ручное формирование мета данных")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Возможность самостоятельно задавать мета: robots, description, keywords персонально для каждой страницы.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки записей"}}];function Xa(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ja(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Xa(o,r,i,a,s,"next",t)}function s(t){Xa(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Qa,ts,es={name:"categories",components:{},props:{model:{type:Function,required:!0}},data:function(){return{dragging:-1,loading:!1,hasTouch:"ontouchstart"in window}},computed:{categories:function(){return this.model.query().withAll().orderBy("position","asc").get()},isDragging:function(){return this.dragging>-1}},created:(ts=Ja(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.init();case 1:case"end":return t.stop()}}),t,this)}))),function(){return ts.apply(this,arguments)}),methods:{init:function(){console.log(this.categories)},create:function(){},dragStart:function(t,e){e.dataTransfer.setData("text/plain",t),e.dataTransfer.dropEffect="move",this.dragging=t},dragEnter:function(t){},dragLeave:function(t){},dragEnd:function(t){this.dragging=-1},dragFinish:function(t,e){this.moveItem(this.dragging,t)},moveItem:function(t,e){var n=this.categories,r=n.find((function(e,n,r){return e.id===t})),i=n.find((function(t,n,r){return t.id===e})),o=Math.min(r.position,i.position),a=Math.max(r.position,i.position);this.$props.model.update({where:function(t){return(e=t.position)>=o&&e<=a&&t.id!==r.id;var e},data:function(t){t.position=r.position0},isEditMode:function(){return this.$props.id>0}}),mounted:function(){var t=is(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.$props.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:(ls=is(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:as({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:as({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,as({},n));case 11:case"end":return t.stop()}}),t,this)}))),function(t){return ls.apply(this,arguments)})}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)},keydown:function(e){return(e.type.indexOf("key")||83===e.keyCode)&&e.ctrlKey?(e.preventDefault(),t.onSubmit(e)):null}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.show_in_menu,expression:"form.show_in_menu"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.show_in_menu)?t._i(t.form.show_in_menu,null)>-1:t.form.show_in_menu},on:{change:function(e){var n=t.form.show_in_menu,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"show_in_menu",n.concat([null])):o>-1&&t.$set(t.form,"show_in_menu",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"show_in_menu",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.slug,expression:"form.slug"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.slug},on:{input:function(e){e.target.composing||t.$set(t.form,"slug",e.target.value)}}})])]),t._v(" "),t.form.articles_count?t._e():n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.alt_url,expression:"form.alt_url"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.alt_url},on:{input:function(e){e.target.composing||t.$set(t.form,"alt_url",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(5),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.info,expression:"form.info"}],staticClass:"form-control",attrs:{rows:"4",max:"500"},domProps:{value:t.form.info},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"info",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.keywords,expression:"form.keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.paginate,expression:"form.paginate"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.paginate},on:{input:function(e){e.target.composing||t.$set(t.form,"paginate",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.order_by,expression:"form.order_by"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"order_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"id"}},[t._v("По умолчанию")]),t._v(" "),n("option",{attrs:{value:"title"}},[t._v("Заголовок")]),t._v(" "),n("option",{attrs:{value:"views"}},[t._v("Количество просмотров")]),t._v(" "),n("option",{attrs:{value:"comments_count"}},[t._v("Количество комментариев")]),t._v(" "),n("option",{attrs:{value:"created_at"}},[t._v("Дата создания")]),t._v(" "),n("option",{attrs:{value:"updated_at"}},[t._v("Дата обновления")])])])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.direction,expression:"form.direction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"direction",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"desc"}},[t._v("По убыванию")]),t._v(" "),n("option",{attrs:{value:"asc"}},[t._v("По возрастанию")])])])]),t._v(" "),t.form.id?n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.template,expression:"form.template"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"template",e.target.multiple?n:n[0])}}},[n("option",{domProps:{value:null}},[t._v("По умолчанию")]),t._v(" "),t._l(t.template_list,(function(e,r){return n("option",{domProps:{value:r}},[t._v(t._s(e))])}))],2)])]):t._e()])]),t._v(" "),t.x_fields.length?n("div",{staticClass:"card card-default"},[t._m(15),t._v(" "),n("div",{staticClass:"card-body"},t._l(t.x_fields,(function(e){return n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-sm-7"},[n("label",{staticClass:"control-label"},[t._v(t._s(e.title))]),t._v(" "),n("small",{staticClass:"form-text text-muted"},[t._v(t._s(e.descr))])]),t._v(" "),n("div",{staticClass:"col-sm-5"},["string"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"integer"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"boolean"===e.type?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form[e.name])?t._i(t.form[e.name],null)>-1:t.form[e.name]},on:{change:function(n){var r=t.form[e.name],i=n.target,o=!!i.checked;if(Array.isArray(r)){var a=t._i(r,null);i.checked?a<0&&t.$set(t.form,e.name,r.concat([null])):a>-1&&t.$set(t.form,e.name,r.slice(0,a).concat(r.slice(a+1)))}else t.$set(t.form,e.name,o)}}})]:"array"===e.type?[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",on:{change:function(n){var r=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,e.name,n.target.multiple?r:r[0])}}},t._l(e.params,(function(e,r){return n("option",{domProps:{value:e.key}},[t._v(t._s(e.value))])})),0)]:"text"===e.type?[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form[e.name],expression:"form[field.name]"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form[e.name]},on:{input:function(n){n.target.composing||t.$set(t.form,e.name,n.target.value)}}})]:"timestamp"===e.type?[n("input-datetime-local",{staticClass:"form-control",model:{value:t.form[e.name],callback:function(n){t.$set(t.form,e.name,n)},expression:"form[field.name]"}})]:n("div",{staticClass:"alert alert-danger"},[t._v("Неизвестный тип поля.")])],2)])})),0)]):t._e(),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(16),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"categories"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Отображать категорию в меню на панеле навигации")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок "),e("sup",{staticClass:"text-danger"},[this._v("*")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:" control-label"},[this._v("Ярлык для веб-страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оставьте пустым для автоматического создания.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Альтернативный URL")]),this._v(" "),e("small",{staticClass:"form-text text-warning"},[this._v("В категорию, для которой прописан альт. URL, добавлять записи нельзя!")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры для главной страницы")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к категории.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Информация")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Информационный блок, отображаемый на странице категории сайта.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Мета тег description. Формируется только для главной страницы категории.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Мета тег keywords. Формируется только для главной страницы категории. Заполняется через запятую.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество записей на странице")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Если оставить поле пустым, то число будет взято из общих настроек сайта.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Сортировка записей на странице")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Порядок сортировки")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Активный шаблон")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Индивидуальные шаблоны для каждой категории, а также записей и комментариев к этим записям."),e("br"),this._v("Должны быть расположены в папке "),e("code",[this._v("resources/themes/{theme}/views/custom_views/{category_slug}")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Дополнительные поля")])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,us=[{path:"/categories",name:"categories",component:ns,meta:{title:"Список категорий сайта"},props:function(t){return{model:Un}}},{path:"/categories/create",name:"categories.create",component:cs,meta:{title:"Создание категории"},props:function(t){return{model:Un,id:0}}},{path:"/categories/:id/edit",name:"categories.edit",component:cs,meta:{title:"Редактирование категории"},props:function(t){return{model:Un,id:parseInt(t.params.id,10)}}},{path:"/categories/settings",name:"categories.settings",component:qo({name:"categories-settings",extends:Za,data:function(){return{entity:"categories"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.example,expression:"form.example"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.example},on:{input:function(e){e.target.composing||t.$set(t.form,"example",e.target.value)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(3),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блок настроек")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Пример настройки "),e("small",{staticClass:"form-text text-muted"},[this._v("Описание настройки.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки категорий"}}];function fs(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ps(t){for(var e=1;e-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("i",[t._v(t._s(r.user&&r.user.name))]),t._v(": "+t._s(r.content)+"\n ")]),t._v(" "),n("td",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(r.created_at))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.toggleStateComment(r)}}},[n("i",{class:t.classState(r.is_approved)})]),t._v(" "),r.is_approved&&r.url?n("a",{staticClass:"btn btn-link",attrs:{href:r.url,target:"_blank"}},[n("i",{staticClass:"fa fa-external-link"})]):n("button",{staticClass:"btn btn-link",attrs:{type:"button",disabled:""}},[n("i",{staticClass:"fa fa-external-link text-muted"})]),t._v(" "),n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"comments.edit",params:{id:r.id}}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:r.id,checked:Array.isArray(t.selected)?t._i(t.selected,r.id)>-1:t.selected},on:{change:function(e){var n=t.selected,i=e.target,o=!!i.checked;if(Array.isArray(n)){var a=r.id,s=t._i(n,a);i.checked?s<0&&(t.selected=n.concat([a])):s>-1&&(t.selected=n.slice(0,s).concat(n.slice(s+1)))}else t.selected=o}}})])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Пользователь: комментарий")]),t._v(" "),n("td",[t._v("Создан")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAll,expression:"selectedAll"}],attrs:{type:"checkbox",title:"Выбрать все"},domProps:{checked:Array.isArray(t.selectedAll)?t._i(t.selectedAll,null)>-1:t.selectedAll},on:{click:t.selectAll,change:function(e){var n=t.selectedAll,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.selectedAll=n.concat([null])):o>-1&&(t.selectedAll=n.slice(0,o).concat(n.slice(o+1)))}else t.selectedAll=i}}})])])]},proxy:!0},{key:"action",fn:function(){return[n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.massAction,expression:"massAction"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.massAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"",disabled:"",selected:""}},[t._v("Выберите действие")]),t._v(" "),n("optgroup",{attrs:{label:"Статус"}},[n("option",{attrs:{value:"published"}},[t._v("Опубликовать")]),t._v(" "),n("option",{attrs:{value:"unpublished"}},[t._v("Отправить на модерацию")])])]),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"submit"},on:{click:t.applyMassAction}},[t._v("Применить")])])])]},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,meta:{title:"Список комментариев сайта"},props:function(t){return{model:Yn}}},{path:"/comments/:id/edit",name:"comments.edit",component:qo({name:"comments-edit",components:{"image-uploader":qa},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:{}}},computed:{showedForm:function(){return Object.keys(this.form).length>0},isEditMode:function(){return this.$props.id>0}},mounted:function(){var t=vs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.$get({params:{id:this.isEditMode?this.$props.id:"form"}});case 2:this.form=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{onSubmit:function(){var t=vs(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:ps({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:ps({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,ps({},n));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"4",required:""},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(4),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"comments"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Краткое описание")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к заметке.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Редактирование комментария"},props:function(t){return{model:Yn,id:parseInt(t.params.id,10)}}},{path:"/comments/settings",name:"comments.settings",component:qo({name:"comments-settings",extends:Za,data:function(){return{entity:"comments"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.regonly,expression:"form.regonly"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.regonly)?t._i(t.form.regonly,null)>-1:t.form.regonly},on:{change:function(e){var n=t.form.regonly,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"regonly",n.concat([null])):o>-1&&t.$set(t.form,"regonly",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"regonly",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.moderate,expression:"form.moderate"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.moderate)?t._i(t.form.moderate,null)>-1:t.form.moderate},on:{change:function(e){var n=t.form.moderate,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"moderate",n.concat([null])):o>-1&&t.$set(t.form,"moderate",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"moderate",i)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nested,expression:"form.nested"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.nested)?t._i(t.form.nested,null)>-1:t.form.nested},on:{change:function(e){var n=t.form.nested,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"nested",n.concat([null])):o>-1&&t.$set(t.form,"nested",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"nested",i)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-widget"}},[n("div",{staticClass:"card card-default"},[t._m(6),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.widget_used,expression:"form.widget_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.widget_used)?t._i(t.form.widget_used,null)>-1:t.form.widget_used},on:{change:function(e){var n=t.form.widget_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"widget_used",n.concat([null])):o>-1&&t.$set(t.form,"widget_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"widget_used",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.widget_title,expression:"form.widget_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.widget_title},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.widget_count,expression:"form.widget_count",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.widget_count},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_count",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(10),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.widget_content_length,expression:"form.widget_content_length",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.widget_content_length},on:{input:function(e){e.target.composing||t.$set(t.form,"widget_content_length",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(11),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-widget","data-toggle":"tab"}},[this._v("Настройки виджета")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Только для зарегистрированных")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Да - комментирование доступно только для зарегистрированных пользователей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Модерация комментариев")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Опубликовывать комментарии только после одобрения.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вывод древовидных комментариев")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Да - постраничная навигация будет недоступна.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать виджет")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Данный виджет выводит несколько последних комментариев.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок виджета")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество комментариев в виджете")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Количество символов в аннотации комментария")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки комментариев"}}];function gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _s=[{path:"/files",name:"files",component:qo({name:"files",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1,massAction:!1}}},computed:function(t){for(var e=1;e-1:t.form.images_is_convert},on:{change:function(e){var n=t.form.images_is_convert,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"images_is_convert",n.concat([null])):o>-1&&t.$set(t.form,"images_is_convert",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"images_is_convert",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_quality,expression:"form.images_quality",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"50",max:"100"},domProps:{value:t.form.images_quality},on:{input:function(e){e.target.composing||t.$set(t.form,"images_quality",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_thumb_width,expression:"form.images_thumb_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"240"},domProps:{value:t.form.images_thumb_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_thumb_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_thumb_height,expression:"form.images_thumb_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20",max:"240"},domProps:{value:t.form.images_thumb_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_thumb_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(7),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_small_width,expression:"form.images_small_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"241",max:"576"},domProps:{value:t.form.images_small_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_small_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_small_height,expression:"form.images_small_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"241",max:"576"},domProps:{value:t.form.images_small_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_small_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_medium_width,expression:"form.images_medium_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"577",max:"992"},domProps:{value:t.form.images_medium_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_medium_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_medium_height,expression:"form.images_medium_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"577",max:"992"},domProps:{value:t.form.images_medium_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_medium_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(13),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_max_width,expression:"form.images_max_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"993",max:"3840"},domProps:{value:t.form.images_max_width},on:{input:function(e){e.target.composing||t.$set(t.form,"images_max_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(15),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.images_max_height,expression:"form.images_max_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"993",max:"2160"},domProps:{value:t.form.images_max_height},on:{input:function(e){e.target.composing||t.$set(t.form,"images_max_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(16),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-images","data-toggle":"tab"}},[this._v("Загрузчик изображений")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Общие параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Конвертировать изображения")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Конвертировать загружаемые изображения в формат "),e("code",[this._v("*.jpeg")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Качество изображений")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Миниатюра изображения "),e("code",[this._v("thumb")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("При создании миниатюры будет задана эта величина с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("При создании миниатюры будет задана эта величина с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Малое изображение "),e("code",[this._v("small")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Изображение средних размеров "),e("code",[this._v("medium")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Оригинал изображения")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оригинал изображения будет уменьшен до этой величины с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Оригинал изображения будет уменьшен до этой величины с соблюдением пропорциий.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки файлового менеджера"}}];function ws(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xs(t){for(var e=1;e0},isEditMode:function(){return this.$props.id>0}},mounted:function(){var t=js(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.$get({params:{id:this.isEditMode?this.$props.id:"form"}});case 2:this.form=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{onSubmit:function(){var t=js(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=6;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:Es({},this.form)});case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,this.$props.model.$create({data:Es({},this.form)});case 8:t.t0=t.sent;case 9:n=t.t0,this.form=Object.assign({},this.form,Es({},n));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{rows:"4",required:""},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("image-uploader",{model:{value:t.form.image_id,callback:function(e){t.$set(t.form,"image_id",t._n(e))},expression:"form.image_id"}})],1)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(4),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"notes"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Краткое описание")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Прикрепленное изображение")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Вы можете прикрепить изображение непосредственно к заметке.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,Ns=[{path:"/notes",name:"notes",component:Cs,meta:{title:"Список заметок"},props:function(t){return{model:Cr}}},{path:"/notes/create",name:"notes.create",component:Ts,meta:{title:"Создание заметки"},props:function(t){return{model:Cr,id:0}}},{path:"/notes/:id/edit",name:"note.edit",component:Ts,meta:{title:"Редактирование заметки"},props:function(t){return{model:Cr,id:parseInt(t.params.id,10)}}}];function Ps(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ls(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ps(o,r,i,a,s,"next",t)}function s(t){Ps(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ms={name:"privileges",data:function(){return{privileges:[],roles:[]}},computed:{table:function(){var t=this,e={};return this.roles.map((function(n){e[n]=[],t.privileges.map((function(t){t[n]&&e[n].push(t.id)}))})),e}},mounted:function(){var t=Ls(i.a.mark((function t(){var e;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,k("".concat(Pageinfo.api_url,"/privileges"));case 3:e=t.sent,this.roles=e.data.roles,this.privileges=e.data.privileges,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("Не удалось загрузить привилегии пользователей.");case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:function(){var t=Ls(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(confirm("Вы уверены?")){t.next=2;break}return t.abrupt("return",!1);case 2:return t.prev=2,t.next=5,C("".concat(Pageinfo.api_url,"/privileges"),this.table);case 5:n=t.sent,this.roles=n.data.roles,this.privileges=n.data.privileges,Notification.success({message:__("Updated!")}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error("Не удалось сохранить привилегии пользователей.");case 14:case"end":return t.stop()}}),t,this,[[2,11]])})));return function(e){return t.apply(this,arguments)}}(),updateColumn:function(t,e){"owner"!==e&&this.privileges.forEach((function(n){n[e]=t.target.checked}))},updateRow:function(t,e){var n=this;this.roles.forEach((function(r){"owner"!==r&&(n.privileges[e][r]=t.target.checked)}))}}},$s=(n("HmDM"),[{path:"/privileges",name:"privileges",component:qo(Ms,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card card-table"},[n("div",{staticClass:"card-header d-flex d-print-none"},[n("div",{staticClass:"btn-group d-flex ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/roles|privileges"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"})]),t._v(" "),n("form",{attrs:{action:"#"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card-body table-responsive"},[n("table",{staticClass:"table table-sm table-hover"},[n("thead",[n("tr",[n("th",[t._v("Привилегия")]),t._v(" "),n("th",[t._v("Описание")]),t._v(" "),t._l(t.roles,(function(e,r){return[n("th",[n("label",{staticClass:"control-label"},["owner"!==e?n("input",{attrs:{type:"checkbox"},on:{click:function(n){return t.updateColumn(n,e)}}}):t._e(),t._v(" "+t._s(e)+"\n ")])])]}))],2)]),t._v(" "),n("tbody",t._l(t.privileges,(function(e,r){return n("tr",[n("td",[n("label",{staticClass:"control-label"},[n("input",{attrs:{type:"checkbox"},on:{click:function(e){return t.updateRow(e,r)}}}),t._v("  "+t._s(e.privilege)+"\n ")])]),t._v(" "),n("td",[t._v(t._s(e.description))]),t._v(" "),t._l(t.roles,(function(r){return n("td",[n("label",{staticClass:"control-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e[r],expression:"item[role]"}],attrs:{type:"checkbox",disabled:"owner"==r},domProps:{checked:Array.isArray(e[r])?t._i(e[r],null)>-1:e[r]},on:{change:function(n){var i=e[r],o=n.target,a=!!o.checked;if(Array.isArray(i)){var s=t._i(i,null);o.checked?s<0&&t.$set(e,r,i.concat([null])):s>-1&&t.$set(e,r,i.slice(0,s).concat(i.slice(s+1)))}else t.$set(e,r,a)}}})])])}))],2)})),0)])]),t._v(" "),n("div",{staticClass:"card-footer"},[t._m(0),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"users"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,"15d4eb78",null).exports,meta:{title:"Привилегии пользователей"}}]);function qs(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Rs(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Is,Fs=qo({name:"settings",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},computed:{collection:function(){return this.$props.model.all()},modules:function(){var t=Rs(new Set(this.collection.map((function(t){return t.module_name})))).slice(0);return t}},watch:{modules:function(t){var e=this;t.map((function(t){return e.loadFromJsonPath(t)}))}},mounted:function(){},methods:{destroy:function(t){confirm("Вы уверены, что хотите удалить эту настройку: ".concat(t.name,"?"))&&this.$props.model.$delete({params:{id:t.id}})}},beforeDestroy:(Is=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){qs(o,r,i,a,s,"next",t)}function s(t){qs(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)}))),function(){return Is.apply(this,arguments)})},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"settings.create"}}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Создать")]),t._v(" "),n("div",{staticClass:"btn-group d-flex ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/settings"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group ml-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:"#",title:"Печать",onclick:"window.print(); return false;"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Настройка")]),t._v(" "),n("th",[t._v("Тип поля")]),t._v(" "),n("th",[t._v("Заголовок")]),t._v(" "),n("th",[t._v("Модуль")]),t._v(" "),n("th",[t._v("Вкладка")]),t._v(" "),n("th",[t._v("Набор полей")]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{attrs:{to:{name:"settings.edit",params:{id:r.id}}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(r.type))]),t._v(" "),n("td",[t._v(t._s(t._f("trans")(r.title)))]),t._v(" "),n("td",[t._v(t._s(r.module_name))]),t._v(" "),n("td",[t._v(t._s(r.section))]),t._v(" "),n("td",[t._v(t._s(r.fieldset))]),t._v(" "),n("td",{staticClass:"text-right"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"settings.edit",params:{id:r.id}},title:t._f("trans")("Edit")}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button",title:t._f("trans")("Delete")},on:{click:function(e){return e.preventDefault(),t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Настройка")]),t._v(" "),n("td",[t._v("Тип поля")]),t._v(" "),n("td",[t._v("Заголовок")]),t._v(" "),n("td",[t._v("Модуль")]),t._v(" "),n("td",[t._v("Вкладка")]),t._v(" "),n("td",[t._v("Набор полей")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports;function Ds(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Bs(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Ds(o,r,i,a,s,"next",t)}function s(t){Ds(o,r,i,a,s,"throw",t)}a(void 0)}))}}var zs=qo({name:"settings-edit",components:{},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:new this.$props.model}},computed:{showedForm:function(){return Object.keys(this.form).length>0},isEditMode:function(){return this.$props.id>0},extensibles:function(){return[]}},mounted:function(){var t=Bs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.$props.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{onSubmit:function(){var t=Bs(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=5;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:this.form});case 3:t.next=9;break;case 5:return t.next=7,this.$props.model.$create({data:this.form});case 7:n=t.sent,this.form=n;case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},beforeDestroy:function(){var t=Bs(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Поле")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.extensible},on:{input:function(e){e.target.composing||t.$set(t.form,"extensible",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"extensible",e.target.multiple?n:n[0])}}},t._l(t.extensibles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(1),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"settings"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блок")])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,Us=[{path:"/settings",name:"settings",component:Fs,meta:{title:"Список настроек"},props:function(t){return{model:Nr}}},{path:"/settings/create",name:"settings.create",component:zs,meta:{title:"Создание настройки"},props:function(t){return{model:Nr,id:0}}},{path:"/settings/:id/edit",name:"settings.edit",component:zs,meta:{title:"Редактирование настройки"},props:function(t){return{model:Nr,id:parseInt(t.params.id,10)}}},{path:"/system",name:"system.settings",alias:"/system/settings",component:qo({name:"system",extends:Za,data:function(){return{entity:"system",changefreq:["always","hourly","daily","weekly","monthly","yearly","never"]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.app_name,expression:"form.app_name"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.app_name},on:{input:function(e){e.target.composing||t.$set(t.form,"app_name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.app_url,expression:"form.app_url"}],staticClass:"form-control",attrs:{type:"text",readonly:""},domProps:{value:t.form.app_url},on:{input:function(e){e.target.composing||t.$set(t.form,"app_url",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title,expression:"form.meta_title"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title_delimiter,expression:"form.meta_title_delimiter"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.meta_title_delimiter},on:{input:function(e){e.target.composing||t.$set(t.form,"meta_title_delimiter",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_title_reverse,expression:"form.meta_title_reverse"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.meta_title_reverse)?t._i(t.form.meta_title_reverse,null)>-1:t.form.meta_title_reverse},on:{change:function(e){var n=t.form.meta_title_reverse,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"meta_title_reverse",n.concat([null])):o>-1&&t.$set(t.form,"meta_title_reverse",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"meta_title_reverse",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(8),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_description,expression:"form.meta_description"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_description},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_description",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.meta_keywords,expression:"form.meta_keywords"}],staticClass:"form-control",attrs:{rows:"1"},domProps:{value:t.form.meta_keywords},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault()},input:function(e){e.target.composing||t.$set(t.form,"meta_keywords",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(10),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(11),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.organization,expression:"form.organization"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.organization},on:{input:function(e){e.target.composing||t.$set(t.form,"organization",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(12),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.address_locality,expression:"form.address_locality"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.address_locality},on:{input:function(e){e.target.composing||t.$set(t.form,"address_locality",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(13),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.address_street,expression:"form.address_street"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.address_street},on:{input:function(e){e.target.composing||t.$set(t.form,"address_street",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(14),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_telephone,expression:"form.contact_telephone"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.contact_telephone},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_telephone",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(15),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.contact_email,expression:"form.contact_email"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.form.contact_email},on:{input:function(e){e.target.composing||t.$set(t.form,"contact_email",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-security"}},[n("div",{staticClass:"card card-default"},[t._m(16),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(17),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.lock,expression:"form.lock"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.lock)?t._i(t.form.lock,null)>-1:t.form.lock},on:{change:function(e){var n=t.form.lock,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"lock",n.concat([null])):o>-1&&t.$set(t.form,"lock",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"lock",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(18),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.reason,expression:"form.reason"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.reason},on:{input:function(e){e.target.composing||t.$set(t.form,"reason",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(19),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.retry,expression:"form.retry"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.retry},on:{input:function(e){e.target.composing||t.$set(t.form,"retry",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(20),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(21),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_used,expression:"form.captcha_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.captcha_used)?t._i(t.form.captcha_used,null)>-1:t.form.captcha_used},on:{change:function(e){var n=t.form.captcha_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"captcha_used",n.concat([null])):o>-1&&t.$set(t.form,"captcha_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"captcha_used",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(22),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_width,expression:"form.captcha_width"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_width},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_width",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(23),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_height,expression:"form.captcha_height"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_height},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_height",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(24),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_font_family,expression:"form.captcha_font_family"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"captcha_font_family",e.target.multiple?n:n[0])}}},t._l(t.meta.fonts,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(25),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.captcha_font_size,expression:"form.captcha_font_size"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.form.captcha_font_size},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha_font_size",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-sitemap"}},[n("div",{staticClass:"card card-default"},[t._m(26),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(27),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.home_changefreq,expression:"form.home_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"home_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(28),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.home_priority,expression:"form.home_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.home_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"home_priority",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(29),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(30),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.categories_changefreq,expression:"form.categories_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"categories_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(31),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.categories_priority,expression:"form.categories_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.categories_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"categories_priority",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(32),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(33),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.articles_changefreq,expression:"form.articles_changefreq"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"articles_changefreq",e.target.multiple?n:n[0])}}},t._l(t.changefreq,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(34),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.articles_priority,expression:"form.articles_priority"}],staticClass:"form-control",attrs:{type:"number",min:"0.1",max:"1.0",step:"0.1"},domProps:{value:t.form.articles_priority},on:{input:function(e){e.target.composing||t.$set(t.form,"articles_priority",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"tab-pane",attrs:{id:"pane-themes"}},[n("div",{staticClass:"card card-default"},[t._m(35),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(36),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_theme,expression:"form.app_theme"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_theme",e.target.multiple?n:n[0])}}},t._l(t.meta.themes,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(37),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_skin,expression:"form.app_skin"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_skin",e.target.multiple?n:n[0])}}},t._l(t.meta.skins,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(38),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.app_locale,expression:"form.app_locale"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"app_locale",e.target.multiple?n:n[0])}}},t._l(t.meta.lang,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(39),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.homepage_personalized,expression:"form.homepage_personalized"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.homepage_personalized)?t._i(t.form.homepage_personalized,null)>-1:t.form.homepage_personalized},on:{change:function(e){var n=t.form.homepage_personalized,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"homepage_personalized",n.concat([null])):o>-1&&t.$set(t.form,"homepage_personalized",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"homepage_personalized",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(40),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"dashboard"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-security","data-toggle":"tab"}},[this._v("Безопасность")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-sitemap","data-toggle":"tab"}},[this._v("Карта сайта")])]),this._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#pane-themes","data-toggle":"tab"}},[this._v("Персонализация")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Название сайта")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Например: BixBite.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Домашняя страница")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Например: http://server.com.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Мета данные")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заголовок домашней страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет тайтла — нет поискового трафика.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Разделитель при формировании заголовка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Общие правила для всех страниц.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Обратить порядок формирования заголовка")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Меняет местами Заголовок сайта и Заголовок целевой страницы. Общие правила для всех страниц.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Описание домашней страницы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ключевые слова домашней страницы")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Официальные данные об организации")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Название организации")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Населенный пункт (страна, область/край, город)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Адрес (улица, дом/строение)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Контактный телефон")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Контактный email")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Блокировка сайта")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Заблокировать сайт")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Сайт делается неактивным.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Причина блокировки сайта")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите причину по которой сайт был заблокирован. Например: "),e("code",[this._v("Технические работы")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Повторить попытку")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите через какое время боту поисковой системы необходимо повторно вернуться на сайт."),e("br"),this._v("По умолчанию: "),e("b",[this._v("3600")]),this._v(" сек.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Стандартная капча")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать встроенную капчу")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Ширина изображения")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Высота изображения")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Семейство шрифтов")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Размер шрифта")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Домашняя страница")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения домашней страницы")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[e("a",{attrs:{href:"https://www.sitemaps.org/ru/protocol.html",target:"_blank"}},[this._v("Подробнее")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Страницы категорий")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения страниц")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Целевые страницы записей")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Вероятная частота изменения страниц")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Приоритетность относительно других "),e("i",[this._v("url")]),this._v(" на сайте")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Шаблон сайта")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Шаблон админ. панели")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Язык интерфейса")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("В текущей версии CMS не влияет на шаблон админ. панели.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать персонализированную домашнюю страницу")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Нет - на главной странице будет выведен список последних записей.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки системы"}}],Hs=n("VrN/"),Ks=n.n(Hs),Ws={markup:"html",stylesheet:"css"},Vs={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};function Gs(t,e,n,r,i){return Zs(t,e,n,r,i).reduce((function(t,e){return Object.assign({},t,e)}),{})}function Zs(t,e,n,r,i){return[Ys(t,["globals",n,e]),Ys(t,["project",i,"globals",n,e]),Ys(t,["syntax",r,e]),Ys(t,["project",i,"syntax",r,e])].filter(Boolean)}function Ys(t,e,n){for(var r=t,i=0;i=this.end}limit(t,e){return new this.constructor(this.string,t,e)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos47&&t<58}function ol(t,e,n){return n=n||90,(t&=-33)>=(e=e||65)&&t<=n}function al(t){return il(t)||ol(t)}function sl(t){return 32===t||9===t||160===t}function ll(t){return sl(t)||10===t||13===t}const cl={escape:92,throws:!1};function ul(t,e,n,r){r=r?Object.assign({},cl,r):cl;const i=t.pos;if(t.eat(e)){let o,a=1;for(;!t.eof();)if(!nl(t,r))if((o=t.next())===e)a++;else if(o===n){if(!--a)return t.start=i,!0}else o===r.escape&&t.next();if(t.pos=i,r.throws)throw t.error(`Unable to find matching pair for ${String.fromCharCode(e)}`)}return!1}const fl=36,dl=58,pl=92,hl=123,ml=125;function vl(t,e){return e?`\${${t}:${e}}`:`\${${t}}`}function yl(t,e){const n=t.pos;if(t.eat(fl)){let n=gl(t),r="";if(null!=n)return new bl(n,r,e);if(t.eat(hl)&&null!=(n=gl(t))&&(t.eat(dl)&&(r=function(t){let e;const n=[];t.start=t.pos;for(;!t.eof();){if((e=t.peek())===hl)n.push(t.pos);else if(e===ml){if(!n.length)break;n.pop()}t.next()}if(n.length)throw t.error('Unable to find matching "}" for curly brace at '+n.pop());return t.current()}(t)),t.eat(ml)))return new bl(n,r,e)}t.pos=n}function gl(t){if(t.start=t.pos,t.eatWhile(il))return Number(t.current())}class bl{constructor(t,e,n){this.index=t,this.placeholder=e,this.location=n,this.length=this.placeholder.length}}class _l{constructor(t,e){this.string=t,this.fields=e}mark(t){return function(t,e,n){n=n||vl;const r=e.map((t,e)=>({order:e,field:t,end:t.location+t.length})).sort((t,e)=>t.end-e.end||t.order-e.order);let i=0;return r.map(e=>{const r=t.substr(e.field.location,e.field.length),o=t.slice(i,e.field.location);return i=e.end,o+n(e.field.index,r)}).join("")+t.slice(i)}(this.string,this.fields,t)}toString(){return this.string}}var wl=function(t){const e=new Js(t),n=[];let r,i,o="",a=0,s=0;for(;!e.eof();)r=e.peek(),s=e.pos,r===pl?(e.next(),e.next()):(i=yl(e,o.length+s-a))?(n.push(i),o+=e.string.slice(a,s)+i.placeholder,a=e.pos):e.next();return new _l(o+e.string.slice(a),n)};class xl{constructor(t,e){this.string=t,this.start=e||0,this.pos=this.string.length}sol(){return this.pos===this.start}peek(t){return this.string.charCodeAt(this.pos-1+(t||0))}prev(){if(!this.sol())return this.string.charCodeAt(--this.pos)}eat(t){if(this.sol())return!1;const e="function"==typeof t?t(this.peek()):t===this.peek();return e&&this.pos--,e}eatWhile(t){const e=this.pos;for(;this.eat(t););return this.pos=65&&t<=90}(t)||function(t){return t>47&&t<58}(t)}function Rl(t){return t===Sl||t===Al}function Il(t){return t&&t!==Nl&&!Rl(t)&&!El(t)}const Fl=t=>t.charCodeAt(0),Dl=Fl("["),Bl=Fl("]"),zl=Fl("("),Ul=Fl(")"),Hl=Fl("{"),Kl=Fl("}"),Wl=new Set("#.*:$-_!@%^+>/".split("").map(Fl)),Vl=(new Map).set(Dl,Bl).set(zl,Ul).set(Hl,Kl),Gl={syntax:"markup",lookAhead:null,prefix:""};function Zl(t,e,n){const r=t.pos;if(t.eat(e))for(;!t.sol();){if(t.eat(n))return!0;t.pos--}return t.pos=r,!1}function Yl(t,e){const n=t.pos;let r=!1;for(let n=e.length-1;n>=0&&!t.sol()&&t.eat(e[n]);n--)r=0===n;return r||(t.pos=n),r}function Xl(t,e){return-1!==t.indexOf(e)}function Jl(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||Wl.has(t)}function Ql(t,e){return t===zl||"markup"===e&&(t===Dl||t===Hl)}function tc(t,e){return t===Ul||"markup"===e&&(t===Bl||t===Kl)}var ec=function(t,e,n){let r;e=Math.min(t.length,Math.max(0,null==e?t.length:e)),null!=(n="boolean"==typeof n?Object.assign({},Gl,{lookAhead:n}):Object.assign({},Gl,n)).lookAhead&&!0!==n.lookAhead||(e=function(t,e,n){El(t.charCodeAt(e))&&e++;for(;tc(t.charCodeAt(e),n.syntax);)e++;return e}(t,e,n));const i=function(t,e,n){if(!n)return 0;const r=new xl(t),i=String(n).split("").map(Fl);let o;r.pos=e;for(;!r.sol();)if(!Zl(r,Bl,Dl)&&!Zl(r,Kl,Hl)){if(o=r.pos,Yl(r,i))return o;r.pos--}return-1}(t,e,n.prefix);if(-1===i)return null;const o=new xl(t,i);o.pos=e;const a=[];for(;!o.sol();){if(tc(r=o.peek(),n.syntax))a.push(r);else if(Ql(r,n.syntax)){if(a.pop()!==Vl.get(r))break}else{if(Xl(a,Bl)||Xl(a,Kl)){o.pos--;continue}if(Pl(o)||!Jl(r))break}o.pos--}if(!a.length&&o.pos!==e){const r=t.slice(o.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:r,location:e-r.length,start:n.prefix?i-n.prefix.length:e-r.length,end:e}}};class nc{constructor(t,e,n){this.name=t,this.value=null!=e?e:null,this.options=n||{}}clone(){return new nc(this.name,this.value,Object.assign({},this.options))}valueOf(){return`${this.name}="${this.value}"`}}class rc{constructor(t,e){this.name=t||null,this.value=null,this.repeat=null,this.selfClosing=!1,this.children=[],this.parent=null,this.next=null,this.previous=null,this._attributes=[],Array.isArray(e)&&e.forEach(t=>this.setAttribute(t))}get attributes(){return this._attributes}get attributesMap(){return this.attributes.reduce((t,e)=>(t[e.name]=e.options.boolean?e.name:e.value,t),{})}get isGroup(){return!this.name&&!this.value&&!this._attributes.length}get isTextOnly(){return!this.name&&!!this.value&&!this._attributes.length}get firstChild(){return this.children[0]}get lastChild(){return this.children[this.children.length-1]}get childIndex(){return this.parent?this.parent.children.indexOf(this):-1}get nextSibling(){return this.next}get previousSibling(){return this.previous}get classList(){const t=this.getAttribute("class");return t&&t.value?t.value.split(/\s+/g).filter(ac):[]}create(t,e){return new rc(t,e)}setAttribute(t,e){const n=ic(t,e),r=this.getAttribute(t);r?this.replaceAttribute(r,n):this._attributes.push(n)}hasAttribute(t){return!!this.getAttribute(t)}getAttribute(t){"object"==typeof t&&(t=t.name);for(var e=0;ee!==t).join(" "))}appendChild(t){this.insertAt(t,this.children.length)}insertBefore(t,e){this.insertAt(t,this.children.indexOf(e))}insertAt(t,e){if(e<0||e>this.children.length)throw new Error("Unable to insert node: position is out of child list range");const n=this.children[e-1],r=this.children[e];t.remove(),t.parent=this,this.children.splice(e,0,t),n&&(t.previous=n,n.next=t),r&&(t.next=r,r.previous=t)}removeChild(t){const e=this.children.indexOf(t);-1!==e&&(this.children.splice(e,1),t.previous&&(t.previous.next=t.next),t.next&&(t.next.previous=t.previous),t.parent=t.next=t.previous=null)}remove(){this.parent&&this.parent.removeChild(this)}clone(t){const e=new rc(this.name);return e.value=this.value,e.selfClosing=this.selfClosing,this.repeat&&(e.repeat=Object.assign({},this.repeat)),this._attributes.forEach(t=>e.setAttribute(t.clone())),t&&this.children.forEach(t=>e.appendChild(t.clone(!0))),e}walk(t,e){e=e||0;let n=this.firstChild;for(;n;){const r=n.next;if(!1===t(n,e)||!1===n.walk(t,e+1))return!1;n=r}}use(t){const e=[this];for(var n=1;n{const e=(t=this.getAttribute(t.name)).options;let n=`${e&&e.implied?"!":""}${t.name||""}`;return e&&e.boolean?n+=".":null!=t.value&&(n+=`="${t.value}"`),n});let e=`${this.name||""}`;return t.length&&(e+=`[${t.join(" ")}]`),null!=this.value&&(e+=`{${this.value}}`),this.selfClosing&&(e+="/"),this.repeat&&(e+=`*${this.repeat.count?this.repeat.count:""}`,null!=this.repeat.value&&(e+=`@${this.repeat.value}`)),e}}function ic(t,e){return t instanceof nc?t:"string"==typeof t?new nc(t,e):t&&"object"==typeof t?new nc(t.name,t.value,t.options):void 0}function oc(t){return String(t).trim()}function ac(t,e,n){return t&&n.indexOf(t)===e}var sc=rc;const lc=42;function cc(t){if(t.eat(lc))return t.start=t.pos,{count:t.eatWhile(il)?+t.current():null}}const uc={throws:!0};function fc(t){if(nl(t,uc))return t.current().slice(1,-1)}const dc=123,pc=125,hc=92;function mc(t){const e=t.pos;if(t.eat(dc)){let n,r=1,i="",o=t.pos;for(;!t.eof();)if((n=t.next())===dc)r++;else if(n===pc){if(!--r)return t.start=e,i+t.substring(o,t.pos-1)}else n===hc&&((n=t.next())!==dc&&n!==pc||(i+=t.substring(o,t.pos-2)+String.fromCharCode(n),o=t.pos));throw t.pos=e,t.error(`Unable to find closing ${String.fromCharCode(pc)} for text start`)}return null}const vc=33,yc=46,gc=61,bc=91,_c=93,wc=/^\!?[\w\-:\$@]+\.?$|^\!?\[[\w\-:\$@]+\]\.?$/;function xc(t){if(!t.eat(bc))return null;const e=[];let n,r;for(;!t.eof();){if(t.eatWhile(sl),t.eat(_c))return e;if(null!=(n=fc(t)))e.push({name:null,value:n});else{if(!Cc(t))throw t.error("Expected attribute name");"["===(n=t.current())[0]&&t.peek()===_c&&(t.next(),n=t.current()),wc.test(n)?(r=kc(n),e.push(r),t.eat(gc)&&(null!=(n=fc(t))?r.value=n:null!=(n=mc(t))?(r.value=n,r.options={before:"{",after:"}"}):Cc(t)&&(r.value=t.current()))):e.push({name:null,value:n})}}throw t.error('Expected closing "]" brace')}function kc(t){const e={};t.charCodeAt(0)===vc&&(t=t.slice(1),e.implied=!0),t.charCodeAt(t.length-1)===yc&&(t=t.slice(0,t.length-1),e.boolean=!0);const n={name:t};return Object.keys(e).length&&(n.options=e),n}function Cc(t){const e=t.pos;if(t.eatWhile(Oc))return t.start=e,!0}function Oc(t){return!ll(t)&&!rl(t)&&t!==_c&&t!==gc}const Ec=35,Ac=46,Sc=47;function jc(t){const e=t.pos,n=new sc(Tc(t));let r;for(;!t.eof();)if(t.eat(Ac))n.addClass(Tc(t));else if(t.eat(Ec))n.setAttribute("id",Tc(t));else{if(t.eat(Sc)){if(n.isGroup)throw t.backUp(1),t.error("Unexpected self-closing indicator");n.selfClosing=!0,(r=cc(t))&&(n.repeat=r);break}if(r=xc(t))for(let t=0,e=r.length;t0;)i.firstChild.repeat=i.repeat,e.insertAt(i.firstChild,n++);else e.insertAt(i,n++)}t.parent.removeChild(t)}var Ic=function(t){const e=function(t){const e=new Js(t.trim()),n=new sc;let r,i=n,o=[];for(;!e.eof();){if((r=e.peek())===Pc){const t=new sc;o.push([t,i,e.pos]),i=t,e.next();continue}if(r===Lc){const t=o.pop();if(!t)throw e.error('Unexpected ")" group end');const n=t[0];if(i=t[1],e.next(),n.repeat=cc(e))i.appendChild(n);else for(;n.firstChild;)i.appendChild(n.firstChild);e.eat(Mc);continue}const t=jc(e);if(i.appendChild(t),e.eof())break;switch(e.peek()){case Mc:e.next();continue;case $c:e.next(),i=t;continue;case qc:for(;e.eat(qc);)i=i.parent||i;continue}}if(o.length)throw e.pos=o.pop()[2],e.error("Expected group close");return n}(t);return e.walk(Rc),e};const Fc=42;function Dc(t){if(t.eat(Fc))return t.start=t.pos,{count:t.eatWhile(il)?+t.current():null}}const Bc={throws:!0};function zc(t){if(nl(t,Bc))return t.current().slice(1,-1)}const Uc=123,Hc=125,Kc=92;function Wc(t){const e=t.pos;if(t.eat(Uc)){let n,r=1,i="",o=t.pos;for(;!t.eof();)if((n=t.next())===Uc)r++;else if(n===Hc){if(!--r)return t.start=e,i+t.substring(o,t.pos-1)}else n===Kc&&((n=t.next())!==Uc&&n!==Hc||(i+=t.substring(o,t.pos-2)+String.fromCharCode(n),o=t.pos));throw t.pos=e,t.error(`Unable to find closing ${String.fromCharCode(Hc)} for text start`)}return null}const Vc=33,Gc=46,Zc=61,Yc=91,Xc=93,Jc=/^\!?[\w\-:\$@]+\.?$/;function Qc(t){if(!t.eat(Yc))return null;const e=[];let n,r;for(;!t.eof();){if(t.eatWhile(sl),t.eat(Xc))return e;if(null!=(n=zc(t)))e.push({name:null,value:n});else{if(!eu(t))throw t.error("Expected attribute name");n=t.current(),Jc.test(n)?(r=tu(n),e.push(r),t.eat(Zc)&&(null!=(n=zc(t))?r.value=n:null!=(n=Wc(t))?(r.value=n,r.options={before:"{",after:"}"}):eu(t)&&(r.value=t.current()))):e.push({name:null,value:n})}}throw t.error('Expected closing "]" brace')}function tu(t){const e={};t.charCodeAt(0)===Vc&&(t=t.slice(1),e.implied=!0),t.charCodeAt(t.length-1)===Gc&&(t=t.slice(0,t.length-1),e.boolean=!0);const n={name:t};return Object.keys(e).length&&(n.options=e),n}function eu(t){const e=t.pos;if(t.eatWhile(nu))return t.start=e,!0}function nu(t){return!ll(t)&&!rl(t)&&t!==Yc&&t!==Xc&&t!==Zc}const ru=35,iu=46,ou=47;function au(t){const e=t.pos,n=new sc(su(t));let r;for(;!t.eof();)if(t.eat(iu))n.addClass(su(t));else if(t.eat(ru))n.setAttribute("id",su(t));else{if(t.eat(ou)){if(n.isGroup)throw t.backUp(1),t.error("Unexpected self-closing indicator");n.selfClosing=!0,(r=Dc(t))&&(n.repeat=r);break}if(r=Qc(t))for(let t=0,e=r.length;t0;)i.firstChild.repeat=i.repeat,e.insertAt(i.firstChild,n++);else e.insertAt(i,n++)}t.parent.removeChild(t)}var mu=function(t){const e=function(t){const e=new Js(t.trim()),n=new sc;let r,i=n,o=[];for(;!e.eof();){if((r=e.peek())===cu){const t=new sc;o.push([t,i,e.pos]),i=t,e.next();continue}if(r===uu){const t=o.pop();if(!t)throw e.error('Unexpected ")" group end');const n=t[0];if(i=t[1],e.next(),n.repeat=Dc(e))i.appendChild(n);else for(;n.firstChild;)i.appendChild(n.firstChild);e.eat(fu);continue}const t=au(e);if(i.appendChild(t),e.eof())break;switch(e.peek()){case fu:e.next();continue;case du:e.next(),i=t;continue;case pu:for(;e.eat(pu);)i=i.parent||i;continue}}if(o.length)throw e.pos=o.pop()[2],e.error("Expected group close");return n}(t);return e.walk(hu),e};var vu=function(t,e){return t.walk(t=>(function(t,e){const n=new Set,r=t=>{const i=e.resolve(t.name);if(!i||n.has(i))return;if("function"==typeof i.value)return i.value(t,e,r);const o=mu(i.value);n.add(i),o.walk(r),n.delete(i);const a=function(t){for(;t.children.length;)t=t.children[t.children.length-1];return t}(o);for(!function(t,e){e.name=t.name,t.selfClosing&&(e.selfClosing=!0);null!=t.value&&(e.value=t.value);t.repeat&&(e.repeat=Object.assign({},t.repeat));(function(t,e){!function(t,e){const n=t.classList;for(let t=0;t{null==t.name&&t.attributes.length&&(t.name=bu(t.parent.name))}),t};function wu(t,e){const n=new Set,r=e.length;let i=0;for(;-1!==(i=t.indexOf(e,i));)n.add(i),i+=r;if(n.size){let e=0;const r=t.length;for(;e(function(t,e){return[t,e]})(t,r))}function xu(t,e,n){for(let r=e.length-1;r>=0;r--){const i=e[r];let o=0,a=0,s=!1;if("@"===t.substr(i[0]+i[1],1)){"-"===t.substr(i[0]+i[1]+1,1)&&(s=!0);const e=t.substr(i[0]+i[1]+1+Number(s)).match(/^(\d+)/);e?(a=e[1].length+1+Number(s),o=parseInt(e[1])-1):a=2}t=t.substring(0,i[0])+("function"==typeof n?n(t.substr(i[0],i[1]),o,s):n)+t.substring(i[0]+i[1]+a)}return t}const ku="$";var Cu=function(t){return t.walk(Ou),t};function Ou(t){const e=function(t){for(;t;){if(t.repeat)return t.repeat;t=t.parent}}(t);if(e&&null!=e.value){const n=e.value,r=e.count;t.name=Eu(t.name,n,r),t.value=Eu(t.value,n,r),t.attributes.forEach(e=>{const i=t.getAttribute(e.name).clone();i.name=Eu(e.name,n,r),i.value=Eu(e.value,n,r),t.replaceAttribute(e.name,i)})}return t}function Eu(t,e,n){if("string"==typeof t){return function(t,e,n,r){return function(t){let e=0,n="";const r=t.length;for(;e{let o=i?String(e+r-n+1):String(n+e);for(;o.length{if(!/[#{]/.test(t[n[0]+1]||"")){const t=e[e.length-1];t&&t[0]+t[1]===n[0]?t[1]+=n[1]:e.push(n)}return e},[])}(t),e,n)}return t}const Au="$#",Su="|",ju=/^((?:https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/,Tu=/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,Nu=/^([a-z]+:)?\/\//i;function Pu(t,e){return e=e||1,t.walk(t=>{if(t.repeat&&null===t.repeat.count){for(let n=0;n{t.repeat&&t.repeat.implicit&&(n=!0,function(t,e){let n=Mu(t,e);t.walk(t=>n|=Mu(t,e)),n||Ru(qu(t),e)}(t,e[t.repeat.index]))}),n||Ru(qu(t),e.join("\n"))}return t}function Mu(t,e){const n={replaced:!1};return t.value=$u(t.value,e,n),t.attributes.forEach(r=>{r.value&&t.setAttribute(r.name,$u(r.value,e,n))}),n.replaced}function $u(t,e,n){if("string"==typeof t){const r=wu(t,Au);r.length&&(n&&(n.replaced=!0),t=xu(t,r,e))}return t}function qu(t){for(;t.children.length;)t=t.children[t.children.length-1];return t}function Ru(t,e){if(t.value){const n=wu(t.value,Su);if(n.length)return void(t.value=xu(t.value,n,e))}("a"===t.name.toLowerCase()||t.hasAttribute("href"))&&(ju.test(e)?t.setAttribute("href",(Nu.test(e)?"":"http://")+e):Tu.test(e)&&t.setAttribute("href","mailto:"+e)),t.value=e}const Iu={element:"__",modifier:"_"},Fu=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Du=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Bu=t=>/^[a-z]\-/i.test(t),zu=t=>/^[a-z]/i.test(t);function Uu(t,e,n){let r=n.length>1?n.length:0;for(;t.parent&&t.parent.parent&&r--;)t=t.parent;return e.get(t)||""}function Hu(t,e){for(let n=0;n(function(t,e){const n=t.classList.reduce((t,e)=>{const n=e.indexOf("_");return n>0&&!e.startsWith("-")?(t.add(e.slice(0,n)),t.add(e.slice(n)),t):t.add(e)},new Set);n.size&&t.setAttribute("class",Array.from(n).join(" "))})(t));const n=function(t){const e=new Map;return t.walk(t=>{const n=t.classList;n.length&&e.set(t,Hu(n,Bu)||Hu(n,zu)||e.get(t.parent))}),e}(t);return t.walk(t=>(function(t,e,n){const r=t.classList.reduce((r,i)=>{let o,a;const s=i;return(a=i.match(Fu))&&(o=Uu(t,e,a[1])+n.element+a[2],r.add(o),i=i.slice(a[0].length)),(a=i.match(Du))&&(o||(o=Uu(t,e,a[1]),r.add(o)),r.add(`${o}${n.modifier}${a[2]}`),i=i.slice(a[0].length)),i===s&&r.add(s),r},new Set),i=Array.from(r).filter(Boolean);i.length&&t.setAttribute("class",i.join(" "))})(t,n,e)),t},jsx:function(t){return t.walk(t=>{Ku(t,"class","className"),Ku(t,"for","htmlFor")}),t},xsl:function(t){return t.walk(t=>{Wu.test(t.name||"")&&(t.children.length||t.value)&&t.removeAttribute("select")}),t}};var Gu=function(t,e){return Object.keys(e||{}).forEach(n=>{if(n in Vu){const r="object"==typeof e[n]?e[n]:null;t=t.use(Vu[n],r)}}),t},Zu=function(t,e,n){return"string"==typeof e?e=[e]:e&&"object"==typeof e&&!Array.isArray(e)&&(n=e,e=null),t.use(_u).use(Pu,Array.isArray(e)?e.length:null).use(Cu).use(Lu,e).use(Gu,n)};function Yu(t,e){const n=function(t){const e=/\$\{([a-z][\w\-]*)\}/gi,n=[],r=new Map;let i;for(;i=e.exec(t);)r.set(i.index,i);if(r.size){let e=0,i=0,o=t.length,a="";for(;i(function(t,e){const n=t.attributes;for(let r=0,i=n.length;rt;class Qu{constructor(t,e,n){"object"==typeof e&&(n=e,e=null),this.node=t,this._fieldsRenderer=e||Ju,this.open=null,this.beforeOpen="",this.afterOpen="",this.close=null,this.beforeClose="",this.afterClose="",this.text=null,this.beforeText="",this.afterText="",this.indent="",this.newline="",n&&Object.assign(this,n)}clone(){return new this.constructor(this.node,this)}indentText(t){const e=function(t){return(t||"").split(/\r\n|\r|\n/g)}(t);if(1===e.length)return t;const n=this.newline||this.indent?this.newline:" ";return e.map((t,e)=>e?this.indent+t:t).join(n)}renderFields(t){return this._fieldsRenderer(t)}toString(t){const e=this._wrap(this.open,this.beforeOpen,this.afterOpen),n=this._wrap(this.close,this.beforeClose,this.afterClose);return e+this._wrap(this.text,this.beforeText,this.afterText)+(null!=t?t:"")+n}_wrap(t,e,n){return e=null!=e?e:"",n=null!=n?n:"",null!=t?(t=e?t.replace(/^\s+/,""):t,t=n?t.replace(/\s+$/,""):t,e+this.indentText(t)+n):""}}const tf=(t,e)=>e||"";var ef=function(t,e,n){void 0===n&&(n=e,e=null),e=e||tf;const r={index:1};return function t(e,n,r){return e.map(e=>{const i=n(new Qu(e,r));return i?i.toString(t(e.children,n,r)):""}).join("")}(t.children,n,t=>null==t?e(r.index++):function(t,e){const n="object"==typeof t?t:wl(t);let r=-1;n.fields.forEach(t=>{t.index+=e.index,t.index>r&&(r=t.index)}),-1!==r&&(e.index=r+1);return n}(t,r).mark(e))};const nf=/^(.*?)([A-Z_]+)(.*?)$/,rf=91,of=93;function af(t,e){if(null==t)return t;const n=[],r=(t,n,r,i)=>null!=e[r]?n+e[r]+i:"";let i,o,a="",s=0,l=0;for(;l!t||e.index=e.get("inlineBreak"))return!0}for(let n=0,r=t.children.length;nt.join(""),secondary:t=>t.map(t=>t.isBoolean?t.name:`${t.name}=${t.value}`).join(", ")},bf={open:null,close:null,omitName:/^div$/i,attributes:gf};function _f(t,e,n){n=Object.assign({},bf,n);const r=t.node;if(t.indent=e.indent(function(t){let e=t.parent.isTextOnly?-2:-1,n=t;for(;n=n.parent;)e++;return e<0?0:e}(r)),t.newline="\n",cf(r.parent)&&lf(r)||(t.beforeOpen=t.newline+t.indent),r.name){const i=Object.assign({NAME:e.name(r.name),SELF_CLOSE:r.selfClosing?n.selfClose:null},function(t,e,n){n=Object.assign({},gf,n);const r=[],i=[];return t.node.attributes.forEach(n=>{if(n.options.implied&&null==n.value)return null;const o=e.attribute(n.name),a=t.renderFields(n.value);if(vf.test(o))a&&r.push(`#${a}`);else if(yf.test(o))a&&r.push(`.${a.replace(/\s+/g,".")}`);else{const t=null==n.value&&(n.options.boolean||-1!==e.get("booleanAttributes").indexOf(o.toLowerCase()));i.push({name:o,value:a,isBoolean:t})}}),{PRIMARY_ATTRS:n.primary(r)||null,SECONDARY_ATTRS:n.secondary(i)||null}}(t,e,n.attributes));n.omitName&&n.omitName.test(i.NAME)&&i.PRIMARY_ATTRS&&(i.NAME=null),null!=n.open&&(t.open=af(n.open,i)),null!=n.close&&(t.close=af(n.close,i))}return t}const wf=/\n|\r/;const xf=/\n|\r/,kf={none:"[ SECONDARY_ATTRS]",round:"[(SECONDARY_ATTRS)]",curly:"[{SECONDARY_ATTRS}]",square:"[[SECONDARY_ATTRS]"};const Cf=/\n|\r/;const Of={html:function(t,e,n){const r=function(t){const e=Object.assign({},t&&t.format);return e.comment=Object.assign({},df,e.comment),e}(n=Object.assign({},n));return ef(t,n.field,t=>{if(!ff(t=function(t,e){const n=t.node;if(pf(n,e)){t.indent=e.indent(function(t,e){const n=e.get("formatSkip")||[];let r=t.parent.isTextOnly?-2:-1,i=t;for(;i=i.parent;)-1===n.indexOf((i.name||"").toLowerCase())&&r++;return r<0?0:r}(n,e)),t.newline="\n";const r=t.newline+t.indent;cf(n.parent)&&lf(n)||(t.beforeOpen=r,n.isTextOnly&&(t.beforeText=r)),function(t,e){const n=(t.name||"").toLowerCase();if(-1!==e.get("formatForce").indexOf(n))return!0;for(let n=0;n{if(n.options.implied&&null==n.value)return null;const r=e.attribute(n.name);let i=null;if(n.options.boolean||-1!==e.get("booleanAttributes").indexOf(r.toLowerCase())){if(e.get("compactBooleanAttributes")&&null==n.value)return` ${r}`;null==n.value&&(i=r)}return null==i&&(i=t.renderFields(n.value)),n.options.before&&n.options.after?` ${r}=${n.options.before+i+n.options.after}`:` ${r}=${e.quote(i)}`}).join("")}(t,e);t.open=`<${i}${o}${n.selfClosing?e.selfClose():""}>`,n.selfClosing||(t.close=``),function(t,e){const n=t.node;if(!e.enabled||!e.trigger||!n.name)return;const r=t.node.attributes.reduce((t,e)=>(e.name&&null!=e.value&&(t[e.name.toUpperCase().replace(/-/g,"_")]=e.value),t),{});for(let n=0,i=e.trigger.length;nt.map(t=>t.isBoolean?`${t.name}${e.get("compactBooleanAttributes")?"":"=true"}`:`${t.name}=${e.quote(t.value)}`).join(" ")}};return ef(t,(n=n||{}).field,t=>{if(!ff(t=function(t,e){const n=t.node;!n.isTextOnly&&n.value&&(t.beforeText=wf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,r),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&wf.test(t.value)){const n=sf(t.value),r=e.indent(1),i=n.reduce((t,e)=>Math.max(t,e.length),0);return n.map((t,e)=>`${e?r:""}${function(t,e){for(;t.length`${t.name}=true`:t=>t.name,o={open:`[NAME][PRIMARY_ATTRS]${r}[SELF_CLOSE]`,selfClose:"/",attributes:{secondary:t=>t.map(t=>t.isBoolean?i(t):`${t.name}=${e.quote(t.value)}`).join(" ")}};return ef(t,n.field,t=>{if(!ff(t=function(t,e){const n=t.node,r=n.parent;0===e.get("inlineBreak")&&function(t,e){return t&&(t.isTextOnly||e.isInline(t))}(n,e)&&!cf(r)&&null==r.value&&1===r.children.length&&(t.beforeOpen=": ");!n.isTextOnly&&n.value&&(t.beforeText=xf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,o),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&xf.test(t.value)){const n=e.indent(1);return sf(t.value).map((t,e)=>`${n}${e?" ":"|"} ${t}`).join("\n")}return t.value}(n,e)))}return t})},pug:function(t,e,n){const r={open:"[NAME][PRIMARY_ATTRS][(SECONDARY_ATTRS)]",attributes:{secondary:t=>t.map(t=>t.isBoolean?t.name:`${t.name}=${e.quote(t.value)}`).join(", ")}};return ef(t,(n=n||{}).field,t=>{if(!ff(t=function(t,e){const n=t.node;!n.isTextOnly&&n.value&&(t.beforeText=Cf.test(n.value)?t.newline+t.indent+e.indent(1):" ");return t}(t=_f(t,e,r),e))){const n=t.node;(n.value||!n.children.length&&!n.selfClosing)&&(t.text=t.renderFields(function(t,e){if(null!=t.value&&Cf.test(t.value)){const n=e.indent(1);return sf(t.value).map(t=>`${n}| ${t}`).join("\n")}return t.value}(n,e)))}return t})}};var Ef=function(t,e,n,r){return"object"==typeof n&&(r=n,n=null),function(t){return!!t&&t in Of}(n)||(n="html"),Of[n](t,e,r)};class Af{constructor(){this.type="css-value",this.value=[]}get size(){return this.value.length}add(t){this.value.push(t)}has(t){return-1!==this.value.indexOf(t)}toString(){return this.value.join(" ")}}const Sf=35,jf=46;function Tf(t){if(t.peek()===Sf){t.start=t.pos,t.next(),t.eat(116)||t.eatWhile(Pf);const e=t.current();if(t.start=t.pos,t.eat(jf)&&!t.eatWhile(il))throw t.error("Unexpected character for alpha value of color");return new Nf(e,t.current())}}class Nf{constructor(t,e){this.type="color",this.raw=t,this.alpha=Number(null!=e&&""!==e?e:1);let n=0,r=0,i=0;if("t"===(t=t.slice(1)))this.alpha=0;else switch(t.length){case 0:break;case 1:n=r=i=t+t;break;case 2:n=r=i=t;break;case 3:n=t[0]+t[0],r=t[1]+t[1],i=t[2]+t[2];break;default:n=(t+=t).slice(0,2),r=t.slice(2,4),i=t.slice(4,6)}this.r=parseInt(n,16),this.g=parseInt(r,16),this.b=parseInt(i,16)}toHex(t){const e=t&&Lf(this.r)&&Lf(this.g)&&Lf(this.b)?Mf:$f;return"#"+e(this.r)+e(this.g)+e(this.b)}toRGB(){const t=[this.r,this.g,this.b];return 1!==this.alpha&&t.push(this.alpha.toFixed(8).replace(/\.?0+$/,"")),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}toString(t){return this.r||this.g||this.b||this.alpha?1===this.alpha?this.toHex(t):this.toRGB():"transparent"}}function Pf(t){return il(t)||ol(t,65,70)}function Lf(t){return!(t%17)}function Mf(t){return(t>>4).toString(16)}function $f(t){return function(t,e){for(;t.lengthnew xd(t.key,t.value)))}class xd{constructor(t,e){this.key=t,this.value=e,this.property=null;const n=e&&e.match(bd);n&&(this.property=n[1],this.value=n[2]),this.dependencies=[]}addDependency(t){this.dependencies.push(t)}get defaultValue(){return null!=this.value?Od(this.value)[0]:null}keywords(){const t=[],e=new Set;let n,r,i=0;for(this.property&&t.push(this);i=o&&(o=s,i=r)}return o>=r?i:null}function Nd(t,e){const n=t&&"object"==typeof t?t[e]:t,r=(n||"").match(/^[\w-@]+/);return r?r[0]:n}function Pd(t){return Md(t,"keyword")}function Ld(t){return Md(t,"numeric")}function Md(t,e){return t&&"object"==typeof t&&t.type===e}function $d(t,e,n){return e.unit?e.unit=n.unitAliases[e.unit]||e.unit:0!==e.value&&-1===Ad.indexOf(t)&&(e.unit=e.value===(0|e.value)?n.intUnit:n.floatUnit),e}var qd=function(t,e,n){(n=Object.assign({},Sd,n)).unitAliases=Object.assign({},Sd.unitAliases,n&&n.unitAliases);const r=function(t){return wd(t.all({type:"string"}))}(e);return t.walk(t=>(function(t,e,n){if(n.property)return function(t,e,n){let r=Ed.slice();e&&(r=r.concat(e.keywords()));const i=[t.name].concat(t.value.value).filter(Boolean).map(t=>("string"==typeof t||"keyword"===t.type)&&Td(t=String(t),r,null,n.fuzzySearchMinScore)||t);return t.name=null,t.value.value=i,t}(t,e.find(t=>t.property===n.property),n);const r=Td(t.name,e,"key",n.fuzzySearchMinScore);if(!r)return"!"===t.name?jd(t,"!important"):t;return r.property?function(t,e,n){const r=t.name;if(t.name=e.property,t.value&&"object"==typeof t.value){const i=e.keywords();if(t.value.size)for(let e,r=0;r{const i=n.node;let o=Fd(i,r);if(i.attributes.length){o=function(t,e){const n=wl(t),r=n.fields.length;if(r)for((e=e.slice()).length>r&&(e=e.slice(0,r-1).concat(e.slice(r-1).join(", ")));e.length;){const t=e.shift(),r=n.fields.shift(),i=t.length-r.length;n.string=n.string.slice(0,r.location)+t+n.string.slice(r.location+r.length);for(let t=0,e=n.fields.length;tFd(t,r)))}return n.open=i.name&&e.name(i.name),n.afterOpen=r.between,n.text=n.renderFields(o||null),!n.open||n.text&&n.text.endsWith(";")||(n.afterText=r.after),e.get("format")&&(n.newline="\n",t.lastChild!==i&&(n.afterText+=n.newline)),n})}function Fd(t,e){return t.value&&"object"==typeof t.value&&"css-value"===t.value.type?t.value.value.map(t=>t&&"object"==typeof t?"color"===t.type?t.toString(e.shortHex):t.toString():String(t)).join(" "):null!=t.value?String(t.value):""}const Dd={css:{between:": ",after:";"},scss:"css",less:"css",sass:{between:": ",after:""},stylus:{between:" ",after:""}};function Bd(t,e){let n=Dd[t];return"string"==typeof n&&(n=Dd[n]),Object.assign({},n,e&&e.format)}var zd=function(t,e,n,r){return"object"==typeof n&&(r=n,n=null),function(t){return!!t&&t in Dd}(n)||(n="css"),Id(t,e,r=Object.assign({},r,{format:Bd(n,r)}))},Ud={html:{a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']",style:"style",script:"script[!src]","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}\x3c!--\x3e${0}\x3c!--xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{}'}};const Hd={latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]}},Kd={wordCount:30,skipCommon:!1,lang:"latin"};function Wd(t,e){return Math.floor(Math.random()*(e-t)+t)}function Vd(t,e){const n=t.length,r=Math.min(n,e),i=new Set;for(;i.size3&&e<=6?Wd(0,1):e>6&&e<=12?Wd(0,2):Wd(1,4);for(let i,o=0;o1)return!0;t=t.parent}return!1}(t);return t.repeat||function(t){return!t.parent}(t.parent)?(t.value=Yd(n,e.wordCount,r),t.name=t.parent.name?bu(t.parent.name):null):(t.parent.value=Yd(n,e.wordCount,r),t.remove()),t};class Jd{constructor(t,e){this.key=t,this.value=e}}class Qd{constructor(t){this._string=new Map,this._regexp=new Map,this._disabled=!1,this.load(t)}get disabled(){return this._disabled}disable(){this._disabled=!0}enable(){this._disabled=!1}set(t,e){if("string"==typeof t)t.split("|").forEach(t=>this._string.set(t,new Jd(t,e)));else{if(!(t instanceof RegExp))throw new Error("Unknow snippet key: "+t);this._regexp.set(t,new Jd(t,e))}return this}get(t){if(this.disabled)return;if(this._string.has(t))return this._string.get(t);const e=Array.from(this._regexp.keys());for(let n=0,r=e.length;nthis.set(e,t)):t&&"object"==typeof t&&Object.keys(t).forEach(e=>this.set(e,t[e]))}reset(){this._string.clear(),this._regexp.clear()}values(){if(this.disabled)return[];const t=Array.from(this._string.values()),e=Array.from(this._regexp.values());return t.concat(e)}}var tp=class{constructor(t){this._registry=[],Array.isArray(t)?t.forEach((t,e)=>this.add(e,t)):"object"==typeof t&&this.add(t)}get(t){for(let e=0;ee.level-t.level),n}remove(t){this._registry=this._registry.filter(e=>e.level!==t&&e.store!==t)}resolve(t){for(let e=0;e{const r=n.key instanceof RegExp?"regexp":"string";t.type&&t.type!==r||e.has(n.key)||e.set(n.key,n)};return this._registry.forEach(t=>{t.store.values().forEach(n)}),Array.from(e.values())}clear(){this._registry.length=0}},ep={indent:"\t",tagCase:"",attributeCase:"",attributeQuotes:"double",format:!0,formatSkip:["html"],formatForce:["body"],inlineBreak:3,compactBooleanAttributes:!1,booleanAttributes:["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],selfClosingStyle:"html",inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"]};function np(t,e){return e?"upper"===e?t.toUpperCase():t.toLowerCase():t}var rp=class{constructor(t){this.options=Object.assign({},ep,t),this.quoteChar="single"===this.options.attributeQuotes?"'":'"'}get(t){return this.options[t]}quote(t){return`${this.quoteChar}${null!=t?t:""}${this.quoteChar}`}name(t){return np(t,this.options.tagCase)}attribute(t){return np(t,this.options.attributeCase)}isBooleanAttribute(t){return t.options.boolean||-1!==this.get("booleanAttributes").indexOf((t.name||"").toLowerCase())}selfClose(){switch(this.options.selfClosingStyle){case"xhtml":return" /";case"xml":return"/";default:return""}}indent(t){t=t||0;let e="";for(;t--;)e+=this.options.indent;return e}isInline(t){return"string"==typeof t?-1!==this.get("inlineElements").indexOf(t.toLowerCase()):null!=t.name?this.isInline(t.name):t.isTextOnly}field(t,e){return this.options.field(t,e)}};function ip(t,e){return Ic(t).use(vu,e.snippets).use(Xu,e.variables).use(Zu,e.text,e.options)}function op(t,e){return"string"==typeof t&&(t=vd(t)),t.use(qd,e.snippets,e.options)}const ap=/^lorem([a-z]*)(\d*)$/i;function sp(t){const e={},n=t.name.match(ap);return n[1]&&(e.lang=n[1]),n[2]&&(e.wordCount=+n[2]),Xd(t,e)}const lp={lang:"en",locale:"en-US",charset:"UTF-8"},cp=["css","sass","scss","less","stylus","sss"],up={type:null,syntax:"html",field:(t,e)=>e||"",text:null,profile:null,variables:{},snippets:{},options:null,format:null};function fp(t,e){return"stylesheet"===mp((e=pp(e)).type,e.syntax)?function(t,e){return e=e||{},"string"==typeof t&&(t=op(t,e)),zd(t,e.profile,e.syntax,e)}(t,e):function(t,e){return e=Object.assign({},e),"string"==typeof t&&(t=ip(t,e)),Ef(t,e.profile,e.syntax,e)}(t,e)}function dp(t,e,n){return t&&"markup"!==t&&"stylesheet"!==t&&(n=e,e=t,t="markup"),n instanceof tp?n:function(t,e,n){const r=[];"markup"===t?r.push(Ud.html):"stylesheet"===t&&r.push(Ud.css),e in Ud&&-1===r.indexOf(Ud[e])&&r.push(Ud[e]),Array.isArray(n)?n.forEach(t=>{r.push("string"==typeof t?Ud[t]:t)}):"object"==typeof n&&r.push(n);const i=new tp(r.filter(Boolean));return"stylesheet"!==t&&i.get(0).set(ap,sp),i}(t,e,n)}function pp(t){return"string"==typeof t&&(t={syntax:t}),null==(t=Object.assign({},up,t)).type&&t.syntax&&(t.type=hp(t.syntax)?"stylesheet":"markup"),t.format=Object.assign({field:t.field},t.format),t.profile=function(t){return t.profile instanceof rp?t.profile:new rp(t.profile)}(t),t.variables=Object.assign({},lp,t.variables),t.snippets=dp(t.type,t.syntax,t.snippets),t}function hp(t){return-1!==cp.indexOf(t)}function mp(t,e){return t?"stylesheet"===t?"stylesheet":"markup":hp(e)?"stylesheet":"markup"}const vp=/^([a-z\-]+)(?:\s*:\s*([^\n\r]+))?$/,yp=45;function gp(t){return function(t){t=t.sort(_p);const e=[];for(let n,r,i=0;inew bp(t.key,t.value)))}class bp{constructor(t,e){this.key=t,this.value=e,this.property=null;const n=e&&e.match(vp);n&&(this.property=n[1],this.value=n[2]),this.dependencies=[]}addDependency(t){this.dependencies.push(t)}get defaultValue(){return null!=this.value?xp(this.value)[0]:null}keywords(){const t=[],e=new Set;let n,r,i=0;for(this.property&&t.push(this);it.charCodeAt(0))}const Wp=Kp("\x3c!--"),Vp=Kp("--\x3e");var Gp=function(t){const e=t.pos;if(Hp(t,Wp,Vp,!0)){const n=Op(t,e);return n.type="comment",n}return null};const Zp=Kp("");var Xp=function(t){const e=t.pos;if(Hp(t,Zp,Yp,!0)){const n=Op(t,e);return n.type="cdata",n}return null};const Jp={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function Qp(t){if(60===t.peek())return Gp(t)||Xp(t)||Bp(t)}function th(t,e){const n=t.pos;for(;!t.eof();){if(Up(t,e))return t.pos=t.start,Bp(t);t.next()}return t.pos=n,null}function eh(t){return t[t.length-1]}var nh=function(t,e){e=Object.assign({},Jp,e);const n="string"==typeof t?new Js(t):t,r=new Cp(n,"root"),i=new Set(e.empty),o=e.special.reduce((t,e)=>t.set(e,Kp(``)),new Map),a=(t,n)=>t.selfClosing||!e.xml&&i.has(n);let s,l,c,u=[r];for(;!n.eof();)if(s=Qp(n))if(c=(f=s).name?f.name.value.toLowerCase():`#${f.type}`,"open"===s.type)l=new Cp(n,"tag",s),eh(u).addChild(l),o.has(c)?l.close=th(n,o.get(c)):a(s,c)||u.push(l);else if("close"===s.type){for(let t=u.length-1;t>0;t--)if(u[t].name.toLowerCase()===c){u[t].close=s,u=u.slice(0,t);break}}else eh(u).addChild(new Cp(n,s.type,s));else n.next();var f;return r};const rh=(t,e="")=>`\${${t}${e?":"+e:""}}`;function ih(t,e,n){e=e||t.getCursor();const r=function(t,e){const n=t.getMode();if("jsx"===n.name||"javascript"===n.name)return n.name;const r=t.getModeAt(e);return"xml"===r.name?"html":r.name}(t,e),i=Xs(Object.assign({field:rh},t.getOption("emmet"),n),{syntax:r}),o=t.getModeAt(e);return"jsx"===r?(i.profile=Object.assign({selfClosingStyle:"xml"},i.profile),i.options=Object.assign({jsx:!0},i.options)):"xml"===o.name&&(i.profile=Object.assign({selfClosingStyle:o.configuration},i.profile)),i}const oh=10;class ah extends Js{constructor(t,e,n){super();const r=t.constructor;this.editor=t,this.start=this.pos=e||r.Pos(0,0);const i=t.lastLine();this._eof=n?n.to:r.Pos(i,this._lineLength(i)),this._sof=n?n.from:r.Pos(0,0)}sof(){return sh(this.pos,this._sof)<=0}eof(){return sh(this.pos,this._eof)>=0}limit(t,e){return new this.constructor(this.editor,t,{from:t,to:e})}peek(){const{line:t,ch:e}=this.pos,n=this.editor.getLine(t);return e=this._lineLength(this.pos.line)&&(this.pos.line++,this.pos.ch=0),this.eof()&&(this.pos=Object.assign({},this._eof)),t}return NaN}backUp(t){const e=this.editor.constructor;let{line:n,ch:r}=this.pos;for(r-=t||1;n>=0&&r<0;)n--,r+=this._lineLength(n);return this.pos=n<0||r<0?e.Pos(0,0):e.Pos(n,r),this.peek()}current(){return this.substring(this.start,this.pos)}substring(t,e){return this.editor.getRange(t,e)}error(t){const e=new Error(`${t} at line ${this.pos.line}, column ${this.pos.ch}`);return e.originalMessage=t,e.pos=this.pos,e.string=this.string,e}_lineLength(t){const e=t===this.editor.lastLine();return this.editor.getLine(t).length+(e?0:1)}}function sh(t,e){return t.line-e.line||t.ch-e.ch}function lh(t,e,n){let r=function(t){return Array.isArray(t)?t:t.split(/\r\n|\r|\n/g)}(e);const i=function(t){return t.getOption("indentWithTabs")?"\t":ch(" ",t.getOption("indentUnit"))}(t);return"\t"!==i&&(r=r.map(t=>t.replace(/^\t+/,t=>ch(i,t.length)))),n&&(r=r.map((t,e)=>e?n+t:t)),r.join("\n")}function ch(t,e){let n="";for(;00&&dh(e,t.to)<0:dh(e,t.from)>=0&&dh(e,t.to)<=0}function dh(t,e){return t.line-e.line||t.ch-e.ch}function ph(t){return{from:t.start,to:t.end}}function hh(t,e){const n=e.line;let r,i=e.ch;for(;i>=0;){if("property"===(r=t.getTokenAt({line:n,ch:i})).type)return r.string;if(r.start===i)break;i=r.start}}function mh(t,e){const n=t.getModeAt(e);if(n&&"css"===n.name){const n=t.getTokenAt(e),r=n.state&&n.state.localState||n.state;return r&&r.context&&"prop"===r.context.type}return!1}function vh(t,e,n){const r=t.getLine(e.from.line).match(/^\s+/);let i=lh(t,n,r&&r[0]);const o=wl(i);return t.operation(()=>{t.replaceRange(o.string,e.from,e.to);const n=t.indexFromPos(e.from);if(o.fields.length){const e=o.fields[0],r=t.posFromIndex(e.location+n),i=t.posFromIndex(e.location+e.length+n);t.setSelection(r,i)}else t.setCursor(t.posFromIndex(n+o.string.length));return!0})}const yh="emmet-abbreviation";function gh(t,e,n){const r=bh(t,e);if(r&&r.model)return r.model;const i=function(t,e,n){const r=ih(t,e);if(n&&!function(t,e,n){const r=t.getTokenTypeAt(e);if("stylesheet"===n.type)return"comment"!==r&&"string"!==r;if("html"===n.syntax)return null===r;if("slim"===n.syntax||"pug"===n.syntax)return null===r||"tag"===r||r&&/attribute/.test(r);if("haml"===n.syntax)return null===r||"attribute"===r;if("jsx"===n.syntax)return!0;return!1}(t,e,r))return null;const i=ec(t.getLine(e.line),e.ch,{lookAhead:!0,syntax:r.type,prefix:"jsx"===r.syntax&&t.getOption("jsxBracket")?"<":""});if(i){const o={line:e.line,ch:i.start},a={line:e.line,ch:i.end};return"stylesheet"===r.type&&n&&mh(t,e)&&(r.options=Object.assign({property:hh(t,e)},r.options)),{abbreviation:i.abbreviation,range:{from:o,to:a},config:r}}}(t,e,n);if(i)try{const e=new kh(i.abbreviation,i.range,i.config);return e.valid(t,n)?e:null}catch(t){}}function bh(t,e){const n=t.findMarksAt(e);for(let e,r=0;rt.name),i=n.state&&n.state.localState||n.state;return!r||("sass"===this.config.syntax||i&&i.context&&"block"===i.context.type)}}function Ch(t,e){if(t.somethingSelected())return t.constructor.Pass;const n=gh(t,t.getCursor(),e);return n?(n.insert(t),_h(t),!0):t.constructor.Pass}function Oh(t){const e=t.listSelections().map(e=>(function(t,e){if(n=e.anchor,r=e.head,n.sticky===r.sticky&&0===function(t,e){return t.line-e.line||t.ch-e.ch}(n,r)){const n=e.anchor;if("xml"===t.getModeAt(n).name){const e=t.getTokenAt(n),r=t.getTokenAt(Object.assign({},n,{ch:n.ch+1}));return"tag bracket"===e.type&&">"===e.string&&"tag bracket"===r.type&&"{let n=t.listSelections();const r=t.doc.lineSeparator(),i=r+r;for(let o=n.length-1;o>=0;o--)t.replaceRange(e[o]?i:r,n[o].anchor,n[o].head,"+newline");n=t.listSelections();for(let r=0;r{if(e[r]){const e=n.from().line-1,r={line:e,ch:t.getLine(e).length};return{anchor:r,head:r}}return n}))})}function Eh(t){const e=function(t){if(t.somethingSelected()){const e=t.listSelections().filter(t=>t.anchor!==t.head)[0];if(e)return dh(e.anchor,e.head)<0?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}return function(t,e){const n=t.getEmmetDocumentModel(),r=n&&n.nodeForPoint(e);if(!r)return null;if(Ah(r.open,e)||Ah(r.close,e))return ph(r);const i=r.open.end,o=r.close?r.close.start:r.open.end;return function(t,e,n){const r=new ah(t,e);if(r.eatWhile(ll),e=r.pos,n){for(r.pos=n,r.backUp();!r.sof()&&ll(r.peek());)r.backUp();r.next(),n=r.pos}else n=e;return{from:e,to:n}}(t,i,o)}(t,t.getCursor())}(t);if(e){const n=t.getOption("emmetPrompt")||Sh,r=t.getRange(e.from,e.to,"\n").split("\n").map(t=>t.trim());n(t,"Enter abbreviation to wrap with:",n=>{if(n){new kh(n,e,ih(t,e.from,{text:r})).insert(t)}})}else console.warn("Nothing to wrap")}function Ah(t,e){return t&&fh(ph(t),e)}function Sh(t,e,n){n(window.prompt(e))}function jh(t,e){e=e||t.getCursor();let n=[];const r=gh(t,e,!0);r&&r.abbreviation!==r.snippet&&n.push(function(t,e,n){let r=n.preview;r.length>500&&(r=r.slice(0,500)+"...");return new Ph("expanded-abbreviation",t,n.range,"Expand abbreviation",r,(t,e)=>n.insert(t,e))}(t,0,r));const i=r?r.config:ih(t,e);return n="stylesheet"===i.type?n.concat(function(t,e,n){const r=Nh(t.getLine(e.line).slice(0,e.ch),/[\w-@$]/);if(r){const i={from:{line:e.line,ch:e.ch-r.length},to:e};if(!n.options||!n.options.property)return Th(t,e,n).filter(t=>t.key!==r&&0===t.key.indexOf(r)).map(e=>new Ph("snippet",t,i,e.key,e.preview,e.snippet));{const o=n.options.property.toLowerCase(),a=Th(t,e,n).find(t=>t.property&&t.property===o);if(a&&a.keywords.length)return a.keywords.map(e=>0===e.key.indexOf(r)&&new Ph("value",t,i,e.key,e.preview,e.snippet)).filter(Boolean)}}return[]}(t,e,i)):n.concat(function(t,e,n){const r=Nh(t.getLine(e.line).slice(0,e.ch),/[\w:\-$@]/);if(r){const i={from:{line:e.line,ch:e.ch-r.length},to:e};return Th(t,e,n).filter(t=>t.key!==r&&0===t.key.indexOf(r)).map(e=>new Ph("snippet",t,i,e.key,e.preview,e.snippet))}return[]}(t,e,i)),{type:i.type,syntax:i.syntax,abbreviation:r,completions:n.filter(Boolean)}}function Th(t,e,n){const{type:r,syntax:i}=n;t.state.emmetCompletions||(t.state.emmetCompletions={});const o=t.state.emmetCompletions;if(!(i in o)){const t=dp(r,i,n.snippets);o[i]="stylesheet"===r?function(t){return kp(t).map(t=>{let e=t.property;const n=t.keywords();return n.length?e+=`: ${uh(n.join(" | "))}`:t.value&&(e+=`: ${uh(t.value)}`),{key:t.key,value:t.value,snippet:t.key,property:t.property,keywords:n.map(t=>{const e=t.match(/^[\w-]+/);return e&&{key:e[0],preview:uh(t),snippet:t}}).filter(Boolean),preview:e}})}(t):function(t,e){return t.all({type:"string"}).map(t=>({key:t.key,value:t.value,preview:uh(fp(t.value,e)),snippet:t.key}))}(t,n)}return o[i]}function Nh(t,e){let n=t.length;for(;n>0&&e.test(t[n-1]);)n--;return t.slice(n)}class Ph{constructor(t,e,n,r,i,o){this.type=t,this.editor=e,this.range=n,this.name=r,this.preview=i,this.snippet=o,this._inserted=!1}insert(){this._inserted||(this._inserted=!0,"function"==typeof this.snippet?this.snippet(this.editor,this.range):vh(this.editor,this.range,this.snippet),_h(this.editor))}}class Lh{constructor(t,e,n){this.dom=t,this.type=e,this.syntax=n}nodeForPoint(t,e){let n=this.dom.firstChild,r=null;for(;n;)fh(ph(n),t,e)?(r=n,n=n.firstChild):n=n.nextSibling;return r}}function Mh(t){const e=function(t){const e=t.getMode();if("htmlmixed"===e.name)return"html";return"xml"===e.name?e.configuration:e.name}(t);return function(t,e){const n=new ah(t),r="xml"===e;try{return new Lh(nh(n,{xml:r}),"html",e||"html")}catch(t){console.warn(t)}}(t,e)}function $h(t){t.state._emmetModel=null}const qh="emmet-open-tag",Rh="emmet-close-tag";function Ih(t,e){e=e||t.getCursor();const n=Fh(t);if(n)if(fh(n.open.find(),e)){if(!n.close||zh(t,n.open)===zh(t,n.close))return n}else if(n.close&&fh(n.close.find(),e)&&zh(t,n.open)===zh(t,n.close))return n;Dh(t);const r=function(t,e){const n=t.getEmmetDocumentModel();return n&&n.nodeForPoint(e||t.getCursor())}(t,e);if(r&&"tag"===r.type)return{open:Bh(t,r.open.name,qh),close:r.close&&Bh(t,r.close.name,Rh)}}function Fh(t){let e,n;return t.getAllMarks().forEach(t=>{t.className===qh?e=t:t.className===Rh&&(n=t)}),e?{open:e,close:n}:null}function Dh(t){t.getAllMarks().forEach(t=>{t.className!==qh&&t.className!==Rh||t.clear()})}function Bh(t,e,n){return t.markText(e.start,e.end,{className:n,inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1})}function zh(t,e){const n=e.find();return n?t.getRange(n.from,n.to):""}function Uh(t,e){const n=Fh(t),r=e.from;n&&(fh(n.open.find(),r)&&n.close?Hh(t,n.open,n.close):n.close&&fh(n.close.find(),r)&&Hh(t,n.close,n.open))}function Hh(t,e,n){const r=function(t,e){const n=e.find();return n?t.getRange(n.from,n.to):""}(t,e),i=n.find(),o=r.match(/[\w:.-]+/),a=r?o&&o[0]:"";null!=a?t.getRange(i.from,i.to)!==a&&t.replaceRange(a,i.from,i.to):Dh(t)}var Kh=function(t){Object.assign(t.commands,{emmetExpandAbbreviation:t=>Ch(t,!0),emmetExpandAbbreviationAll:t=>Ch(t,!1),emmetInsertLineBreak:Oh,emmetWrapWithAbbreviation:Eh});const e=t=>(function(t,e){const n=bh(t,e);if(n)return n;_h(t);const r=gh(t,e,!0);return r?wh(t,r):void 0})(t,t.getCursor());t.defineOption("markEmmetAbbreviation",!0,(t,n)=>{n?t.on("change",e):(t.off("change",e),_h(t))}),t.defineOption("autoRenameTags",!0,(t,e)=>{e?t.on("change",Uh):t.off("change",Uh)}),t.defineOption("jsxBracket",!0),t.defineOption("markTagPairs",!1,(t,e)=>{e?(t.on("cursorActivity",Ih),t.on("change",$h)):(t.off("cursorActivity",Ih),t.off("change",$h),$h(t),Dh(t))}),t.defineOption("emmet",{}),t.defineExtension("getEmmetCompletions",(function(t,e){const n=this;"boolean"==typeof t&&(e=t,t=null),t=t||n.getCursor();const r=jh(n,t);if(r&&r.completions.length)return n.getOption("markEmmetAbbreviation")&&!bh(n,t)&&e&&(_h(n),wh(r.model)),{from:r.abbreviation.range.from,to:r.abbreviation.range.to,list:r.completions}})),t.defineExtension("getEmmetAbbreviation",(function(t,e){return gh(this,t||this.getCursor(),e)})),t.defineExtension("findEmmetMarker",(function(t){return bh(this,t||this.getCursor())})),t.defineExtension("getEmmetDocumentModel",(function(){return this.getOption("markTagPairs")?function(t){return t.state._emmetModel||(t.state._emmetModel=Mh(t)),t.state._emmetModel}(this):Mh(this)}))},Wh=(n("1p+/"),n("ewDg"),n("+dQi"),n("RNWO"),n("bXjK"),n("Ku0u"),n("C2zF"),n("uTOq"),n("McUL"),qo({name:"templates-tree",props:{item:{type:Object,required:!0}},data:function(){return{}},computed:{isDir:function(){return this.$props.item.children.length>0},title:function(){return this.trans("#"+this.$props.item.name)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"tree_view__item"},[t.isDir?[n("a",{staticClass:"tree_view__link",attrs:{href:"#collapse-"+t.item.id,"data-toggle":"collapse"}},[n("i",{staticClass:"fa fa-folder-o text-muted"}),t._v(" "+t._s(t.item.name)+"\r\n ")]),t._v(" "),n("ul",{staticClass:"tree_view__subitem collapse",attrs:{id:"collapse-"+t.item.id}},t._l(t.item.children,(function(t,e){return n("templates-tree",{key:t.id,attrs:{item:t}})})),1)]:[n("a",{staticClass:"tree_view__link",attrs:{href:"#","data-path":t.item.filename}},[n("i",{staticClass:"fa fa-file-text-o text-muted"}),t._v(" "+t._s(t.item.name)+"\r\n ")])]],2)}),[],!1,null,null,null).exports);function Vh(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Gh(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Vh(o,r,i,a,s,"next",t)}function s(t){Vh(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Zh(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e>>0},nm=[{path:"/templates",name:"templates",component:qo({name:"templates-index",components:{"templates-tree":Wh},props:{model:{type:Function,required:!0}},data:function(){return{filename:null,editor:null}},computed:Xh({},Object(g.c)({meta:"meta/all"}),{theme:function(){return this.meta.theme||"Загрузка шаблонов темы ..."},template:function(){return this.$props.model.query().where("filename",this.filename).first()},tmode:function(){var t=this.filename?this.filename.split(".").pop():"php";return Qh[t]||Qh.default},templates:function(){var t=this.$props.model.all(),e=[],n=new Map,r=t.map((function(t,r,i){var o=t.filename.split("\\"),a=o.pop(),s=o.length?em(o):0;return function(t,e,n){t.length&&t.reduce((function(t,r,i,o){var a=t.length?em(t):0;t.push(r);var s=em(t);return e.has(s)||(e.set(s),n.push({id:s,name:r,parent:a})),t}),[])}(o,n,e),Xh({},t,{name:a,parent:s})})),i=[].concat(e,Zh(r));return i.forEach((function(t,e,n){t.children=n.filter((function(e){return t.id===e.parent}))})),i.filter((function(t){return 0===t.parent}))}}),watch:{filename:function(t,e){t&&this.onChangeFileName()}},mounted:function(){var t=Gh(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("templates");case 2:return t.next=4,this.$props.model.$fetch();case 4:this.initialize();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{chooseTemplate:function(t){var e=t.target.dataset.path;e&&(this.filename=e)},onChangeFileName:function(){this.editor.setOption("mode",this.tmode),this.editor.setValue(this.template.content),this.editor.getDoc().clearHistory(),window.scrollTo({top:0,behavior:"smooth"})},createTemplate:function(){var t=this,e=prompt("Задайте имя новому файлу: *.blade.php","new");e&&this.$props.model.$create({data:{filename:e+".blade.php",content:""}}).then((function(e){return t.filename=e.filename}))},updateTemplate:function(){this.template&&this.template.id&&this.$props.model.$update({params:{id:this.template.id},data:{filename:this.template.filename,content:this.template.content}})},initialize:function(){var t=this;Kh(Ks.a),this.editor=Ks.a.fromTextArea(this.$refs.codeEditor,tm),this.editor.on("change",(function(e){t.template.id&&t.$props.model.update({where:t.template.id,data:{content:e.getValue()}})})),document.addEventListener("keydown",this.onSaveHandler)},destroy:function(){var t=this.editor.getWrapperElement();t&&t.remove&&t.remove(),this.editor.off("change"),document.removeEventListener("keydown",this.onSaveHandler)},onSaveHandler:function(t){t.ctrlKey&&t.keyCode=="S".charCodeAt(0)&&(t.preventDefault(),this.updateTemplate())}},beforeDestroy:function(){var t=Gh(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:this.destroy();case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("link",{attrs:{href:t.skin("css/code-editor.css"),rel:"stylesheet"}}),t._v(" "),n("nav",{staticClass:"navbar navbar-expand navbar-dark bg-primary justify-content-between"},[n("a",{staticClass:"navbar-brand",attrs:{href:"#"}},[t._v(t._s(t.theme))]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"collapse navbar-collapse",attrs:{id:"bs-navbar"}},[n("ul",{staticClass:"navbar-nav ml-auto"},[n("li",{staticClass:"nav-item"},[n("a",{staticClass:"nav-link",attrs:{href:"#",title:"Создать шаблон"},on:{click:function(e){return e.preventDefault(),t.createTemplate(e)}}},[n("i",{staticClass:"fa fa-plus"})])]),t._v(" "),t._m(1)])])]),t._v(" "),n("form",{attrs:{method:"post"},on:{submit:function(t){t.preventDefault()}}},[n("div",{staticClass:"container-fluid"},[n("div",{staticClass:"row"},[n("nav",{staticClass:"col-md-3 bg-light sidebar",on:{click:function(e){return e.preventDefault(),t.chooseTemplate(e)}}},[n("ul",{staticClass:"tree_view__list"},t._l(t.templates,(function(t,e){return n("templates-tree",{key:t.id,attrs:{item:t}})})),1)]),t._v(" "),n("main",{staticClass:"col-md-9 ml-sm-auto p-3 border-bottom border-right"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"input-group"},[n("input",{staticClass:"form-control",attrs:{type:"text",readonly:"",placeholder:"Выберите шаблон для редактирования ...",autocomplete:"off",required:""},domProps:{value:t.template&&t.template.filename}}),t._v(" "),n("div",{staticClass:"input-group-append"})])]),t._v(" "),n("div",{staticClass:"form-group border"},[n("textarea",{ref:"codeEditor",staticClass:"form-control",attrs:{value:"",rows:"12"}}),t._v(" "),t.template&&t.template.exists?n("div",{staticClass:"status d-flex",staticStyle:{"background-color":"#f7f7f7","border-top":"1px solid #ddd"}},[n("small",{staticClass:"template__title p-2"},[n("span",{staticClass:"text-muted"},[t._v("Дата изменения:")]),t._v(" "+t._s(t.template.modified))]),t._v(" "),n("small",{staticClass:"template__title p-2 ml-auto"},[n("span",{staticClass:"text-muted"},[t._v("Размер:")]),t._v(" "+t._s(t.template.size))])]):t._e()]),t._v(" "),t.template&&t.template.exists?n("div",{staticClass:"d-flex"},[[n("button",{staticClass:"btn btn-outline-success",attrs:{type:"button",title:"Ctrl+S"},on:{click:function(e){return e.preventDefault(),t.updateTemplate(e)}}},[t._m(2),t._v(" "),n("span",{staticClass:"d-none d-md-inline"},[t._v("Сохранить")])])]],2):t._e()])])])]),t._v(" "),t._m(3)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","data-target":"#bs-navbar"}},[e("span",{staticClass:"navbar-toggler-icon"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"#","data-toggle":"modal","data-target":"#hotkeys"}},[e("i",{staticClass:"fa fa-leanpub"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"hotkeys",tabindex:"-1",role:"dialog"}},[n("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[n("h4",[t._v("Справка")]),t._v(" "),n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),n("div",{staticClass:"modal-body"},[n("h5",[t._v("Сочетания клавиш codemirror")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col col-xs-6"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[n("kbd",[t._v("Ctrl + S")])]),t._v(" "),n("td",[t._v("сохранить шаблон")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("F11")])]),t._v(" "),n("td",[t._v("полноэкранный режим")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Ctrl+E")])]),t._v(" "),n("td",[t._v("развернуть аббревиатуру ("),n("a",{attrs:{href:"http://docs.emmet.io/cheat-sheet/",target:"_blank",title:"Emmet cheat sheet"}},[t._v("emmet")]),t._v(")")])])])])]),t._v(" "),n("div",{staticClass:"col col-xs-6"},[n("table",{staticClass:"table table-sm"},[n("tbody",[n("tr",[n("td",[n("kbd",[t._v("Ctrl + F")])]),t._v(" "),n("td",[t._v("начать поиск")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Ctrl + G")])]),t._v(" "),n("td",[t._v("найти далее")])]),t._v(" "),n("tr",[n("td",[n("kbd",[t._v("Shift + Ctrl + F")])]),t._v(" "),n("td",[t._v("заменить")])])])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn btn-secondary",attrs:{type:"cancel","data-dismiss":"modal"}},[t._v("Закрыть")])])])])])}],!1,null,null,null).exports,meta:{title:"Редактор шаблонов текущей темы сайта"},props:function(t){return{model:Ir}}}],rm={name:"themes-index",data:function(){return{}},computed:{},created:function(){},methods:{}},im=(n("TepM"),[{path:"/themes",name:"themes",component:qo(rm,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"row"},[this._v("\n Themes\n")])}),[],!1,null,"135435cd",null).exports,meta:{title:"Themes on the your site."}}]);function om(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function am(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sm=[{path:"/users",name:"users",component:qo({name:"users",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},computed:{collection:function(){return this.model.all()},isOnline:function(){return function(t){return t?"text-success":"text-warning"}},isActive:function(){return function(t){return t?"fa fa-times text-warning":"fa fa-check text-success"}}},mounted:function(){this.loadFromJsonPath("users")},beforeDestroy:function(){this.$props.model.deleteAll()},methods:{toggleIsActive:function(t){console.log(t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("div",{staticClass:"btn-group d-flex ml-auto mr-auto"},[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"privileges"},title:"Привилегии"}},[n("i",{staticClass:"fa fa-user-secret"})]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields"},title:"Дополнительные поля"}},[n("i",{staticClass:"as-icon"},[t._v("χφ")])]),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"users.settings"},title:"Настройки"}},[n("i",{staticClass:"fa fa-cogs"})])],1)]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Имя")]),t._v(" "),n("th",[t._v("Группа")]),t._v(" "),n("th",{staticClass:"d-print-none"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Зарегистрирован")]),t._v(" "),n("th",{staticClass:"hidden-xs"},[t._v("Был активен")]),t._v(" "),n("th",[n("i",{staticClass:"fa fa-newspaper-o"})]),t._v(" "),n("th",[n("i",{staticClass:"fa fa-comments-o"})]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действия")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("b",{class:t.isOnline(r.is_online)},[t._v(" • ")]),t._v(" "),n("router-link",{attrs:{to:{name:"user.edit",params:r}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(t._f("trans")(r.role)))]),t._v(" "),n("td",{staticClass:"d-print-none"},[t._v(t._s(r.email))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.created_at))]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v(t._s(r.logined_at||"Не заходил"))]),t._v(" "),n("td",[t._v(t._s(r.articles_count))]),t._v(" "),n("td",[t._v(t._s(r.comments_count))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"user.edit",params:r}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Имя")]),t._v(" "),n("td",[t._v("Группа")]),t._v(" "),n("td",{staticClass:"d-print-none"},[t._v("Email")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Зарегистрирован")]),t._v(" "),n("td",{staticClass:"hidden-xs"},[t._v("Был активен")]),t._v(" "),n("td",[n("i",{staticClass:"fa fa-newspaper-o"})]),t._v(" "),n("td",[n("i",{staticClass:"fa fa-comments-o"})]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действия")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports,meta:{title:"Список пользователей"},props:function(t){return{model:xn}}},{path:"/users/:id/edit",name:"user.edit",component:qo({name:"user-edit",components:{"image-uploader":qa},props:{model:{type:Function,required:!0},id:{type:Number,required:!0}},data:function(){return{form:{}}},computed:function(t){for(var e=1;e0}}),mounted:function(){this.$props.model.$get({params:{id:this.$props.id}}).then(this.fillForm)},beforeDestroy:function(){this.$props.model.deleteAll()},methods:{fillForm:function(t){this.form=Object.assign({},this.form,{id:t.id,name:t.name,role:t.role,email:t.email,password:null,password_confirmation:null})},onSubmit:function(t){Notification.warning({message:"This feature is not implemented!"})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-6"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[n("div",{staticClass:"card-header"},[n("i",{staticClass:"fa fa-th-list"}),t._v(" Редактирование пользователя "),n("b",[t._v(t._s(t.form.name))])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Псевдоним")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Группа")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.role,expression:"form.role"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"role",e.target.multiple?n:n[0])}}},t._l(t.roles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(t._f("trans")(e)))])})),0)])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Почта")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Пароль")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{type:"password",autocomplete:"new-password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-5"},[t._v("Подтверждение пароля")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password_confirmation,expression:"form.password_confirmation"}],staticClass:"form-control",attrs:{type:"password",autocomplete:"off"},domProps:{value:t.form.password_confirmation},on:{input:function(e){e.target.composing||t.$set(t.form,"password_confirmation",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-7 offset-sm-5"},[n("div",{staticClass:"d-flex"},[t._m(0),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"users"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Редактирование пользователя"},props:function(t){return{model:xn,id:parseInt(t.params.id,10)}}},{path:"/users/settings",name:"users.settings",component:qo({name:"users-settings",extends:Za,data:function(){return{entity:"users"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{method:"post",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"tab-content"},[n("div",{staticClass:"tab-pane active",attrs:{id:"pane-main"}},[n("div",{staticClass:"card card-default"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_allow_register,expression:"form.auth_allow_register"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.auth_allow_register)?t._i(t.form.auth_allow_register,null)>-1:t.form.auth_allow_register},on:{change:function(e){var n=t.form.auth_allow_register,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"auth_allow_register",n.concat([null])):o>-1&&t.$set(t.form,"auth_allow_register",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"auth_allow_register",i)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_username,expression:"form.auth_username"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"auth_username",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"name"}},[t._v("Псевдоним")]),t._v(" "),n("option",{attrs:{value:"email"}},[t._v("Почта")])])])])])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(4),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(5),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.avatar_max_width,expression:"form.avatar_max_width",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20"},domProps:{value:t.form.avatar_max_width},on:{input:function(e){e.target.composing||t.$set(t.form,"avatar_max_width",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(6),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.form.avatar_max_height,expression:"form.avatar_max_height",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",min:"20"},domProps:{value:t.form.avatar_max_height},on:{input:function(e){e.target.composing||t.$set(t.form,"avatar_max_height",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.gravatar_used,expression:"form.gravatar_used"}],staticClass:"form-control",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.gravatar_used)?t._i(t.form.gravatar_used,null)>-1:t.form.gravatar_used},on:{change:function(e){var n=t.form.gravatar_used,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.form,"gravatar_used",n.concat([null])):o>-1&&t.$set(t.form,"gravatar_used",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"gravatar_used",i)}}})])])])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(8),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:t.entity},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs"},[e("li",{staticClass:"nav-item active"},[e("a",{staticClass:"nav-link active",attrs:{href:"#pane-main","data-toggle":"tab"}},[this._v("Основные настройки")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Основные параметры")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Разрешить регистрацию")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Разрешить новым пользователям регистрироваться на сайте.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Идентификация пользователя")]),this._v(" "),e("small",{staticClass:"form-text text-muted"},[this._v("Укажите, что для входа на сайт помимо пароля требуется ввести пользователю.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Аватар")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная ширина")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Максимальная высота")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-sm-7"},[e("label",{staticClass:"control-label"},[this._v("Использовать сервис "),e("i",[this._v("gravatar.com")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,meta:{title:"Настройки пользователей"}}];function lm(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}var cm=qo({name:"x_fields",components:{filterable:na},props:{model:{type:Function,required:!0}},data:function(){return{filterable:{model:this.$props.model,active:!1}}},mounted:function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){lm(o,r,i,a,s,"next",t)}function s(t){lm(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadFromJsonPath("x_fields");case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),beforeDestroy:function(){this.$props.model.deleteAll()},methods:{destroy:function(t){confirm(" Вы уверены, что хотите безвозвратно удалить поле [".concat(t.title,"] \n из таблицы [").concat(t.extensible,"] со всеми связанными данными?"))&&this.$props.model.$delete({params:{id:t.id}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("filterable",t._b({scopedSlots:t._u([{key:"preaction",fn:function(){return[n("router-link",{staticClass:"btn btn-outline-dark",attrs:{to:{name:"x_fields.create"}}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Создать")]),t._v(" "),n("div",{staticClass:"btn-group d-flex mx-auto"},[n("a",{staticClass:"btn btn-outline-dark",attrs:{href:t.url("app_common/clearcache/x_fields"),title:"Очистить кэш"}},[n("i",{staticClass:"fa fa-recycle"})])]),t._v(" "),n("div",{staticClass:"btn-group"},[n("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",title:"Печать",onclick:"window.print()"}},[n("i",{staticClass:"fa fa-print"})])])]},proxy:!0},{key:"thead",fn:function(){return[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v("Идентификатор")]),t._v(" "),n("th",[t._v("Расширяемая таблица")]),t._v(" "),n("th",[t._v("Тип поля")]),t._v(" "),n("th",[t._v("Название")]),t._v(" "),n("th",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"row",fn:function(e){var r=e.row;return[n("tr",{key:r.id},[n("td",[t._v(t._s(r.id))]),t._v(" "),n("td",[n("router-link",{attrs:{to:{name:"x_fields.edit",params:{id:r.id}}}},[t._v(t._s(r.name))])],1),t._v(" "),n("td",[t._v(t._s(r.extensible))]),t._v(" "),n("td",[t._v(t._s(r.type))]),t._v(" "),n("td",[t._v(t._s(r.title))]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[n("div",{staticClass:"btn-group"},[n("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"x_fields.edit",params:{id:r.id}}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return t.destroy(r)}}},[n("i",{staticClass:"fa fa-trash-o text-danger"})])],1)])])]}},{key:"tfoot",fn:function(){return[n("tr",[n("td",[t._v("#")]),t._v(" "),n("td",[t._v("Идентификатор")]),t._v(" "),n("td",[t._v("Расширяемая таблица")]),t._v(" "),n("td",[t._v("Тип поля")]),t._v(" "),n("td",[t._v("Название")]),t._v(" "),n("td",{staticClass:"text-right d-print-none"},[t._v("Действие")])])]},proxy:!0},{key:"action",fn:function(){},proxy:!0}])},"filterable",t.filterable,!1))}),[],!1,null,null,null).exports;function um(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0},isEditMode:function(){return this.$props.id>0},isArrayType:function(){return"array"===this.form.type}}),mounted:function(){var t=dm(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=4;break}return t.next=3,this.model.$get({params:{id:this.$props.id}});case 3:this.form=t.sent;case 4:this.form.params&&(this.form.params=um(this.form.params));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{addParam:function(t){this.form.params.push(this.param),this.resetParam()},delParam:function(t){this.form.params.splice(t,1)},resetParam:function(){this.param.key=null,this.param.value=null},onSubmit:function(){var t=dm(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isEditMode){t.next=5;break}return t.next=3,this.$props.model.$update({params:{id:this.form.id},data:this.form});case 3:t.next=9;break;case 5:return t.next=7,this.$props.model.$create({data:this.form});case 7:n=t.sent,this.form=n;case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},beforeDestroy:function(){var t=dm(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$props.model.deleteAll();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col col-sm-12"},[t.showedForm?n("form",{attrs:{action:"",method:"post"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"card card-default"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.extensible},on:{input:function(e){e.target.composing||t.$set(t.form,"extensible",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.extensible,expression:"form.extensible"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"extensible",e.target.multiple?n:n[0])}}},t._l(t.extensibles,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(2),t._v(" "),n("div",{staticClass:"col-sm-5"},[t.isEditMode?[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.type,expression:"form.type"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:""},domProps:{value:t.form.type},on:{input:function(e){e.target.composing||t.$set(t.form,"type",e.target.value)}}})]:[n("select",{directives:[{name:"model",rawName:"v-model",value:t.form.type,expression:"form.type"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"type",e.target.multiple?n:n[0])}}},t._l(t.fieldTypes,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e))])})),0)]],2)]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(3),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text",required:"",readonly:t.isEditMode},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),t.isArrayType?n("div",{staticClass:"form-group row"},[t._m(4),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("table",{staticClass:"table table-sm"},[t._m(5),t._v(" "),n("tbody",t._l(t.form.params,(function(e,r){return n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.key,expression:"param.key"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.key},on:{input:function(n){n.target.composing||t.$set(e,"key",n.target.value)}}})]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"param.value"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(n){n.target.composing||t.$set(e,"value",n.target.value)}}})]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-sm btn-outline-danger",attrs:{type:"button"},on:{click:function(e){return t.delParam(r)}}},[n("i",{staticClass:"fa fa-trash"})])])])})),0),t._v(" "),n("tfoot",[t._m(6),t._v(" "),n("tr",[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.param.key,expression:"param.key"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.param.key},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addParam(e))},input:function(e){e.target.composing||t.$set(t.param,"key",e.target.value)}}})]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.param.value,expression:"param.value"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.param.value},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.addParam(e))},input:function(e){e.target.composing||t.$set(t.param,"value",e.target.value)}}})]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-sm btn-outline-success",attrs:{type:"button"},on:{click:t.addParam}},[n("i",{staticClass:"fa fa-plus"})])])])])])])]):t._e(),t._v(" "),t.isArrayType?n("div",{staticClass:"form-group row"},[t._m(7),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("select",{staticClass:"form-control"},t._l(t.form.params,(function(e,r){return n("option",{domProps:{value:e.key}},[t._v(t._s(e.value))])})),0)])]):t._e()])]),t._v(" "),n("div",{staticClass:"card card-default"},[t._m(8),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Название")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-sm-7 control-label"},[t._v("Краткое описание")]),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.descr,expression:"form.descr"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form.descr},on:{input:function(e){e.target.composing||t.$set(t.form,"descr",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[t._m(9),t._v(" "),n("div",{staticClass:"col-sm-5"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.html_flags,expression:"form.html_flags"}],staticClass:"form-control",attrs:{rows:"4"},domProps:{value:t.form.html_flags},on:{input:function(e){e.target.composing||t.$set(t.form,"html_flags",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-sm-5 offset-sm-7"},[n("div",{staticClass:"d-flex"},[t._m(10),t._v(" "),n("router-link",{staticClass:"btn btn-outline-dark btn-bg-white ml-auto",attrs:{to:{name:"x_fields"},exact:""}},[n("span",{staticClass:"d-lg-none"},[n("i",{staticClass:"fa fa-ban"})]),t._v(" "),n("span",{staticClass:"d-none d-lg-inline"},[t._v("Отменить")])])],1)])])])])]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры поля")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Расширяемая таблица"),e("small",{staticClass:"form-text text-muted"},[this._v("К этой таблице в БД будет добавлено поле.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Тип"),e("small",{staticClass:"form-text text-muted"},[this._v("Тип данных, хранимых в текущем поле.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Идентификатор"),e("small",{staticClass:"form-text text-muted"},[this._v("Заполняется по схеме "),e("code",[this._v("/^[a-z_]+$/")]),this._v(". В БД к полю будет добавлен префикс "),e("code",[this._v("x_")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Список пар "),e("small",{staticClass:"form-text text-muted"},[this._v("Список пар "),e("u",[this._v("ключ => значение")]),this._v(" для доп. поля типа "),e("b",[this._v("array")]),this._v(".")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Ключ")]),this._v(" "),e("th",[this._v("Значение")]),this._v(" "),e("th")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("td",{attrs:{colspan:"3"}},[this._v("Добавить пару")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"col-sm-7 control-label"},[this._v("Предварительный просмотр\r\n "),e("small",{staticClass:"form-text text-muted"},[this._v("Так будет выглядеть дополнительное поле, т.е. в форме выпадающего списка.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("i",{staticClass:"fa fa-th-list"}),this._v(" Параметры отображения при заполнении")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"col-sm-7 control-label"},[t._v("Атрибуты "),n("small",{staticClass:"form-text text-muted"},[t._v("Например, "),n("code",[n("b",[t._v("required")])]),t._v(", "),n("code",[t._v("disabled")]),t._v(", "),n("code",[t._v("placeholder")]),t._v(", "),n("code",[t._v("onclick")]),t._v(", "),n("code",[t._v('autocomplete="off"')]),t._v(", "),n("code",[t._v("style")]),t._v(", "),n("code",[t._v("rows")]),t._v(" и т.д."),n("br"),t._v("Записываются в одну строку. Валидацию на правильность написания не проходят, передаются как есть.")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-outline-success btn-bg-white",attrs:{type:"submit",title:"Ctrl+S"}},[e("span",{staticClass:"d-md-none"},[e("i",{staticClass:"fa fa-floppy-o"})]),this._v(" "),e("span",{staticClass:"d-none d-md-inline"},[this._v("Сохранить")])])}],!1,null,null,null).exports,vm=[{path:"/x_fields",name:"x_fields",component:cm,meta:{title:"Дополнительные поля"},props:function(t){return{model:Kr}}},{path:"/x_fields/create",name:"x_fields.create",component:mm,meta:{title:"Создание дополнительного поля"},props:function(t){return{model:Kr,id:0}}},{path:"/x_fields/:id/edit",name:"x_fields.edit",component:mm,meta:{title:"Редактирование дополнительного поля"},props:function(t){return{model:Kr,id:parseInt(t.params.id,10)}}}];function ym(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e160?.5:0},hover(){this.opacity=1},click(){window.scrollTo(0,0)}}},Am=(n("3XYq"),n("4PWN"),qo(Em,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive?n("div",{staticClass:"scrolltop",style:{opacity:t.opacity},on:{click:function(e){return t.click()},mouseover:function(e){return t.hover()},mouseout:function(e){return t.handle()}}},[n("svg",{attrs:{id:"icon-arrow-up",viewBox:"0 0 24 24",width:"24",height:"24"}},[n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",fill:"#fff"}})])]):t._e()}),[],!1,null,"c8165842",null).exports),Sm={show:(t={})=>new(f.a.extend(Am))({el:document.createElement("div"),propsData:Object.assign({active:!0,opacity:0},t)})};Am.install=function(t,e){t.prototype.$scrolling=Sm};var jm=Am,Tm={beforeMount(){document.querySelector("body").appendChild(this.$el)},methods:{dismiss(t){this.$notification.dismiss(t)}}},Nm=(n("jVfm"),n("upAJ"),qo(Tm,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notification"},[n("transition-group",{attrs:{name:"fade-in-down",tag:"div"}},t._l(t.items,(function(e,r){return n("div",{key:r+0,staticClass:"notification_item",style:e.style},[n("button",{staticClass:"notification_item__close",attrs:{type:"button"},on:{click:function(e){return t.dismiss(r)}}},[t._v("×")]),t._v(" "),e.title?n("h5",{staticClass:"notification_item__heading"},[t._v(t._s(e.title))]):t._e(),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.message)}})])})),0)],1)}),[],!1,null,"c59babe8",null).exports);let Pm;const Lm={info:"rgb(91, 192, 222)",success:"rgb(67, 172, 106)",warning:"rgb(233, 144, 2)",error:"rgb(240, 65, 36)"};var Mm={show(t={}){if(void 0===Pm){let t=f.a.extend(Nm),e=document.createElement("div");Pm=new t({el:e,data:{items:[],item:{title:"",message:"",style:{}}}})}Pm.$data.items.push({title:t.title||!1,message:t.message||"Message is empty!",style:{backgroundColor:Lm[t.type||info]}}),setTimeout(()=>{Pm.$data.items.shift()},8e3)},info(t){this.show(Object.assign(t,{type:"info"}))},success(t){this.show(Object.assign(t,{type:"success"}))},warning(t){this.show(Object.assign(t,{type:"warning"}))},error(t){this.show(Object.assign(t,{type:"error"}))},dismiss(t){Pm.$data.items.splice(t,1)}};Nm.install=function(t,e){t.prototype.$notification=Mm};var $m=Nm;function qm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Im={name:"loading-layer",computed:function(t){for(var e=1;e"});window.Notification=Zm.$notification},rXFu:function(t,e,n){"use strict";(function(e,r){var i=n("lm0R");t.exports=b;var o,a=n("49sm");b.ReadableState=g;n("+qE3").EventEmitter;var s=function(t,e){return t.listeners(e).length},l=n("QpuX"),c=n("hwdV").Buffer,u=e.Uint8Array||function(){};var f=n("Onz0");f.inherits=n("P7XM");var d=n(1),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n("Xhqo"),v=n("RoFp");f.inherits(b,l);var y=["error","close","destroy","pause","resume"];function g(t,e){t=t||{};var r=e instanceof(o=o||n("sZro"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n("fXKp").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||n("sZro"),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function _(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}(t,a)):(i||(o=function(t,e){var n;r=e,c.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):E(t,a)):w(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(O,t):O(t))}function O(t){p("emit readable"),t.emit("readable"),T(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return p("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):C(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return p("need readable",i),(0===e.length||e.length-t0?N(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,e);var l=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:b;function c(e,r){p("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),t.removeListener("close",y),t.removeListener("finish",g),t.removeListener("drain",f),t.removeListener("error",v),t.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){p("onend"),t.end()}o.endEmitted?i.nextTick(l):n.once("end",l),t.on("unpipe",c);var f=function(t){return function(){var e=t._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,T(t))}}(n);t.on("drain",f);var d=!1;var h=!1;function m(e){p("ondata"),h=!1,!1!==t.write(e)||h||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==M(o.pipes,t))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function v(e){p("onerror",e),b(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",g),b()}function g(){p("onfinish"),t.removeListener("close",y),b()}function b(){p("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",v),t.once("close",y),t.once("finish",g),t.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=e||n<0||y&&t-m>=f}function w(){var t=i();if(_(t))return x(t);p=setTimeout(w,function(t){var n=e-(t-h);return y?l(n,f-(t-m)):n}(t))}function x(t){return p=void 0,g&&c?b(t):(c=u=void 0,d)}function k(){var t=i(),n=_(t);if(c=arguments,u=this,h=t,n){if(void 0===p)return function(t){return m=t,p=setTimeout(w,e),v?b(t):d}(h);if(y)return clearTimeout(p),p=setTimeout(w,e),b(h)}return void 0===p&&(p=setTimeout(w,e)),d}return e=o(e)||0,r(n)&&(v=!!n.leading,f=(y="maxWait"in n)?s(o(n.maxWait)||0,e):f,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},k.flush=function(){return void 0===p?d:x(i())},k}},sZro:function(t,e,n){"use strict";var r=n("lm0R"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=n("Onz0");o.inherits=n("P7XM");var a=n("rXFu"),s=n("3BRs");o.inherits(f,a);for(var l=i(s.prototype),c=0;c=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(l.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 r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return B(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!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))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return S(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,r,i){if(!l.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===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function $(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function q(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,o){return o||q(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function I(t,e,n,r,o){return o||q(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.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},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.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},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),l.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},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.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},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("yLpj"))},uTOq:function(t,e,n){!function(t){"use strict";var e,n,r=t.Pos;function i(t,e){for(var n=function(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),r=n,i=0;ic);u++){var f=t.getLine(l++);a=null==a?f:a+"\n"+f}s*=2,e.lastIndex=n.ch;var d=e.exec(a);if(d){var p=a.slice(0,d.index).split("\n"),h=d[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+h.length-1,1==h.length?v+h[0].length:h[h.length-1].length),match:d}}}}function s(t,e){for(var n,r=0;;){e.lastIndex=r;var i=e.exec(t);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==t.length)return n}}function l(t,e,n){e=i(e,"g");for(var o=n.line,a=n.ch,l=t.firstLine();o>=l;o--,a=-1){var c=t.getLine(o);a>-1&&(c=c.slice(0,a));var u=s(c,e);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function c(t,e,n){e=i(e,"gm");for(var o,a=1,l=n.line,c=t.firstLine();l>=c;){for(var u=0;u>1,s=r(t.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(t,i,o,a){if(!i.length)return null;var s=a?e:n,l=s(i).split(/\r|\n\r?/);t:for(var c=o.line,f=o.ch,d=t.lastLine()+1-l.length;c<=d;c++,f=0){var p=t.getLine(c).slice(f),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue t;return o=u(p,h,m,s)+f,{from:r(c,u(p,h,m,s)+f),to:r(c,u(p,h,m+l[0].length,s)+f)}}var v=h.length-l[0].length;if(h.slice(v)==l[0]){for(var y=1;y=d;c--,f=-1){var p=t.getLine(c);f>-1&&(p=p.slice(0,f));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue t;return{from:r(c,u(p,h,m,s)),to:r(c,u(p,h,m+l[0].length,s))}}var v=l[l.length-1];if(h.slice(0,v.length)==v){var y=1;for(o=c-l.length+1;y0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n("VrN/"))},umAq:function(t,e,n){var r=n("UDow");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},umi4:function(t,e){},upAJ:function(t,e,n){"use strict";var r=n("Xwsg");n.n(r).a},uvSl:function(t,e,n){"use strict";var r=n("/N4U");n.n(r).a},"vn/o":function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},yQtW:function(t,e,n){(function(t,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("43KI"),l=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=e.IncomingMessage=function(e,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){t.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),o.writableStream){var u=new WritableStream({write:function(t){return new Promise((function(e,n){c._destroyed?n():c.push(new r(t))?e():c._resumeFetch=e}))},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void n.body.pipeTo(u).catch((function(t){i.clearTimeout(l),c._destroyed||c.emit("error",t)}))}catch(t){}}var f=n.body.getReader();!function t(){f.read().then((function(e){if(!c._destroyed){if(e.done)return i.clearTimeout(l),void c.push(null);c.push(new r(e.value)),t()}})).catch((function(t){i.clearTimeout(l),c._destroyed||c.emit("error",t)}))}()}else{if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{n=new i.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new r(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new r(o.length),s=0;st._pos&&(t.push(new r(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n("8oxB"),n("tjlA").Buffer,n("yLpj"))},yVJZ:function(t,e,n){var r=n("4fCa");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},zjyH:function(t,e,n){var r=n("42iF");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)}},[[0,0,3]]]); \ No newline at end of file diff --git a/resources/themes/default/public/js/app.js b/resources/themes/default/public/js/app.js index 97bec2a7..01d76f8f 100644 --- a/resources/themes/default/public/js/app.js +++ b/resources/themes/default/public/js/app.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+OQi":function(t,e,n){var r=n("Ysmm");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"/pct":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.notification .notification_item a {\n color: inherit;\n text-decoration: underline;\n font-weight: inherit;\n}\n",""])},0:function(t,e,n){n("BDnE"),t.exports=n("QS6b")},"4PWN":function(t,e,n){"use strict";var r=n("B3Eq");n.n(r).a},"8oxB":function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=s(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var n=1;n160?.5:0},hover:function(){this.opacity=1},click:function(){window.scrollTo(0,0)}}};n("ddh+"),n("4PWN");function g(t,e,n,r,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var _=g(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive?n("div",{staticClass:"scrolltop",style:{opacity:t.opacity},on:{click:function(e){return t.click()},mouseover:function(e){return t.hover()},mouseout:function(e){return t.handle()}}},[n("svg",{attrs:{id:"icon-arrow-up",viewBox:"0 0 24 24",width:"24",height:"24"}},[n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",fill:"#fff"}})])]):t._e()}),[],!1,null,"2c00c62a",null).exports,b={show:function(t){return t=t||{},new(s.a.extend(_))({el:document.createElement("div"),propsData:Object.assign({active:!0,opacity:0},t)})}};_.install=function(t,e){t.prototype.$scrolling=b};var w=_,$={beforeMount:function(){document.querySelector("body").appendChild(this.$el)},methods:{dismiss:function(t){this.$notification.dismiss(t)}}},x=(n("KNC7"),n("upAJ"),g($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notification"},[n("transition-group",{attrs:{name:"fade-in-down",tag:"div"}},[t._l(t.items,(function(e,r){return[n("div",{key:r+0,staticClass:"notification_item",style:e.style},[n("button",{staticClass:"notification_item__close",attrs:{type:"button"},on:{click:function(e){return t.dismiss(r)}}},[t._v("×")]),t._v(" "),e.title?n("h5",{staticClass:"notification_item__heading"},[t._v(t._s(e.title))]):t._e(),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.message)}})])]}))],2)],1)}),[],!1,null,"00bd7a46",null).exports);let C;const k={info:"rgb(91, 192, 222)",success:"rgb(67, 172, 106)",warning:"rgb(233, 144, 2)",danger:"rgb(240, 65, 36)",error:"rgb(240, 65, 36)"};var A={show:function(t){if(t=t||{},void 0===C){let t=s.a.extend(x),e=document.createElement("div");C=new t({el:e,data:{items:[],item:{title:"",message:"",style:{}}}})}C.$data.items.push({title:t.title||!1,message:t.message||"Message is empty!",style:{backgroundColor:k[t.type||info]}}),setTimeout((function(){C.$data.items.shift()}),8e3)},info:function(t){this.show(Object.assign(t,{type:"info"}))},success:function(t){this.show(Object.assign(t,{type:"success"}))},warning:function(t){this.show(Object.assign(t,{type:"warning"}))},error:function(t){this.show(Object.assign(t,{type:"error"}))},dismiss:function(t){C.$data.items.splice(t,1)}};x.install=function(t,e){t.prototype.$notification=A};var O=x;function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E={name:"loading-layer",computed:function(t){for(var e=1;e=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var $=/-(\w)/g,x=w((function(t){return t.replace($,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,A=w((function(t){return t.replace(k,"-$1").toLowerCase()})),O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Z=W&&W.indexOf("edge/")>0,Q=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),tt=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(G)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===V&&(V=!G&&!J&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),V},ot=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=j,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===A(t)){var c=Bt(String,i.type);(c<0||s0&&(le((c=t(c,(n||"")+"_"+r))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):s(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(a(e._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(t):void 0}function le(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=he(e,c,t[c]))}else i={};for(var u in e)u in i||(i[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),H(i,"$stable",a),H(i,"$key",s),H(i,"$hasNormal",o),i}function he(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ye(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return fn.now()})}function dn(){var t,e;for(un=ln(),sn=!0,nn.sort((function(t,e){return t.id-e.id})),cn=0;cncn&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(dn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ht(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:j,set:j};function mn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}var yn={lazy:!0};function gn(t,e,n){var r=!it();"function"==typeof n?(hn.get=r?_n(e):bn(n),hn.set=j):(hn.get=n.get?r&&!1!==n.cache?_n(e):bn(n.get):j,hn.set=n.set||j),Object.defineProperty(t,e,hn)}function _n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function bn(t){return function(){return t.call(this,this)}}function wn(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var $n=0;function xn(t){var e=t.options;if(t.super){var n=xn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&T(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Cn(t){this._init(t)}function kn(t){return t&&(t.Ctor.options.name||t.tag)}function An(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===u.call(n)&&t.test(e));var n}function On(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=kn(a.componentOptions);s&&!e(s)&&Sn(n,o,r,i)}}}function Sn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=$n++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(xn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Ot(t,"$attrs",o&&o.attrs||r,null,!0),Ot(t,"$listeners",e._parentListeners||r,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),Ct(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){i.push(o);var a=Rt(o,e,n,t);Ot(r,o,a),o in t||mn(t,"_props",o)};for(var a in e)o(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?j:O(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Ht(t,e,"data()"),{}}finally{vt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];i&&b(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&mn(t,"_data",a))}At(e,!0)}(t):At(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new vn(t,a||j,j,yn)),i in t||gn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?S(e):e;for(var n=S(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:T,mergeOptions:Dt,defineReactive:Ot},t.set=St,t.delete=Tt,t.nextTick=ee,t.observable=function(t){return At(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,En),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Dt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)gn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),i[r]=a,a}}(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:it}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Ne}),Cn.version="2.6.10";var jn=h("style,class"),Nn=h("input,textarea,option,select,progress"),Mn=function(t,e,n){return"value"===n&&Nn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ln=h("contenteditable,draggable,spellcheck"),In=h("events,caret,typing,plaintext-only"),Dn=function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&In(e)?e:"true"},Pn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Un=function(t){return Fn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function Hn(t,e){return{staticClass:Vn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Vn(t,e){return t?e?t+" "+e:t:e||""}function zn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?hr(t,e,n):Pn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ln(e)?t.setAttribute(e,Dn(e,n)):Fn(e)?Bn(n)?t.removeAttributeNS(Rn,Un(e)):t.setAttributeNS(Rn,e,n):hr(t,e,n)}function hr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(X&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var mr={create:pr,update:pr};function yr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Hn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Hn(e,n.data));return function(t,e){return o(t)||o(e)?Vn(t,zn(e)):""}(e.staticClass,e.class)}(e),c=n._transitionClasses;o(c)&&(s=Vn(s,zn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,_r,br,wr,$r,xr,Cr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(h=t.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:t.slice(0,wr),key:'"'+t.slice(wr+1)+'"'}:{exp:t,key:null};for(_r=t,wr=$r=xr=0;!Vr();)zr(br=Hr())?Gr(br):91===br&&qr(br);return{exp:t.slice(0,$r),key:t.slice($r+1,xr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Hr(){return _r.charCodeAt(++wr)}function Vr(){return wr>=gr}function zr(t){return 34===t||39===t}function qr(t){var e=1;for($r=wr;!Vr();)if(zr(t=Hr()))Gr(t);else if(91===t&&e++,93===t&&e--,0===e){xr=wr;break}}function Gr(t){for(var e=t;!Vr()&&(t=Hr())!==e;);}var Jr,Kr="__r",Wr="__c";function Xr(t,e,n){var r=Jr;return function i(){null!==e.apply(null,arguments)&&Qr(t,i,n,r)}}var Yr=Jt&&!(tt&&Number(tt[1])<=53);function Zr(t,e,n,r){if(Yr){var i=un,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Jr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Qr(t,e,n,r){(r||Jr).removeEventListener(t,e._wrapper||e,n)}function ti(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Jr=e.elm,function(t){if(o(t[Kr])){var e=X?"change":"input";t[e]=[].concat(t[Kr],t[e]||[]),delete t[Kr]}o(t[Wr])&&(t.change=[].concat(t[Wr],t.change||[]),delete t[Wr])}(n),ae(n,r,Zr,Qr,Xr,e.context),Jr=void 0}}var ei,ni={create:ti,update:ti};function ri(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);ii(a,u)&&(a.value=u)}else if("innerHTML"===n&&Jn(a.tagName)&&i(a.innerHTML)){(ei=ei||document.createElement("div")).innerHTML=""+r+"";for(var l=ei.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var oi={create:ri,update:ri},ai=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function si(t){var e=ci(t.style);return t.staticStyle?T(t.staticStyle,e):e}function ci(t){return Array.isArray(t)?E(t):"string"==typeof t?ai(t):t}var ui,li=/^--/,fi=/\s*!important$/,di=function(t,e,n){if(li.test(e))t.style.setProperty(e,n);else if(fi.test(n))t.style.setProperty(A(e),n.replace(fi,""),"important");else{var r=vi(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(yi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _i(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(yi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function bi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,wi(t.name||"v")),T(e,t),e}return"string"==typeof t?wi(t):void 0}}var wi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),$i=G&&!Y,xi="transition",Ci="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";$i&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ei(t){Ti((function(){Ti(t)}))}function ji(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),gi(t,e))}function Ni(t,e){t._transitionClasses&&g(t._transitionClasses,e),_i(t,e)}function Mi(t,e,n){var r=Ii(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===xi?Ai:Si,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n=xi,l=a,f=o.length):e===Ci?u>0&&(n=Ci,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?xi:Ci:null)?n===xi?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===xi&&Li.test(r[ki+"Property"])}}function Di(t,e){for(;t.length1}function Hi(t,e){!0!==e.data.show&&Ri(e)}var Vi=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;ev?_(t,i(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&w(0,e,d,v)}(d,h,y,n,l):o(y)?(o(t.text)&&u.setTextContent(d,""),_(d,null,y,0,y.length-1,n)):o(h)?w(0,h,0,h.length-1):o(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),o(v)&&o(p=v.hook)&&o(p=p.postpatch)&&p(t,e)}}}function k(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(L(Ki(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ji(t,e){return e.every((function(e){return!L(e,t)}))}function Ki(t){return"_value"in t?t._value:t.value}function Wi(t){t.target.composing=!0}function Xi(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Zi(t){return!t.componentInstance||t.data&&t.data.transition?t:Zi(t.componentInstance._vnode)}var Qi={model:zi,show:{bind:function(t,e,n){var r=e.value,i=(n=Zi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Zi(n)).data&&n.data.transition?(n.data.show=!0,r?Ri(n,(function(){t.style.display=t.__vOriginalDisplay})):Fi(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},to={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function eo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?eo(Ge(e.children)):t}function no(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var io=function(t){return t.tag||qe(t)},oo=function(t){return"show"===t.name},ao={name:"transition",props:to,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=eo(i);if(!o)return i;if(this._leaving)return ro(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=no(this),u=this._vnode,l=eo(u);if(o.data.directives&&o.data.directives.some(oo)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!qe(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ro(t,i);if("in-out"===r){if(qe(o))return u;var d,p=function(){d()};se(c,"afterEnter",p),se(c,"enterCancelled",p),se(f,"delayLeave",(function(t){d=t}))}}return i}}},so=T({tag:String,moveClass:String},to);function co(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function uo(t){t.data.newPos=t.elm.getBoundingClientRect()}function lo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Xn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Xn[t]=/HTMLUnknownElement/.test(e.toString())},T(Cn.options.directives,Qi),T(Cn.options.components,fo),Cn.prototype.__patch__=G?Vi:j,Cn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),en(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&G?Zn(t):void 0,e)},G&&setTimeout((function(){U.devtools&&ot&&ot.emit("init",Cn)}),0);var po,vo=/\{\{((?:.|\r?\n)+?)\}\}/g,ho=/[-.*+?^${}()|[\]\/\\]/g,mo=w((function(t){var e=t[0].replace(ho,"\\$&"),n=t[1].replace(ho,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),yo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Pr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Dr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},go={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Pr(t,"style");n&&(t.staticStyle=JSON.stringify(ai(n)));var r=Dr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},_o=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),bo=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=h("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),$o=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+B.source+"]*",ko="((?:"+Co+"\\:)?"+Co+")",Ao=new RegExp("^<"+ko),Oo=/^\s*(\/?)>/,So=new RegExp("^<\\/"+ko+"[^>]*>"),To=/^]+>/i,Eo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Do=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=h("pre,textarea",!0),Ro=function(t,e){return t&&Po(t)&&"\n"===e[0]};function Fo(t,e){var n=e?Do:Io;return t.replace(n,(function(t){return Lo[t]}))}var Uo,Bo,Ho,Vo,zo,qo,Go,Jo,Ko=/^@|^v-on:/,Wo=/^v-|^@|^:/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,Qo=/^\[.*\]$/,ta=/:(.*)$/,ea=/^:|^\.|^v-bind:/,na=/\.[^.\]]+(?=[^\]]*$)/g,ra=/^v-slot(:|$)|^#/,ia=/[\r\n]/,oa=/\s+/g,aa=w((function(t){return(po=po||document.createElement("div")).innerHTML=t,po.textContent})),sa="_empty_";function ca(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:va(e),rawAttrsMap:{},parent:n,children:[]}}function ua(t,e){var n,r;(r=Dr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Dr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Pr(t,"scope"),t.slotScope=e||Pr(t,"slot-scope")):(e=Pr(t,"slot-scope"))&&(t.slotScope=e);var n=Dr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||jr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Rr(t,ra);if(r){var i=da(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||sa}}else{var s=Rr(t,ra);if(s){var c=t.scopedSlots||(t.scopedSlots={}),u=da(s),l=u.name,f=u.dynamic,d=c[l]=ca("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||sa,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Dr(t,"name"))}(t),function(t){var e;(e=Dr(t,"is"))&&(t.component=e),null!=Pr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Ir(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=Dr(t,"value")||"null";Er(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Ir(t,"change",Br(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Kr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(e,l);c&&(f="if($event.target.composing)return;"+f),Er(t,"value","("+e+")"),Ir(t,u,f,null,!0),(s||a)&&Ir(t,"blur","$forceUpdate()")}(t,r,i);else if(!U.isReservedTag(o))return Ur(t,r,i),!1;return!0},text:function(t,e){e.value&&Er(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Er(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:_o,mustUseProp:Mn,canBeLeftOpenTag:bo,isReservedTag:Kn,getTagNamespace:Wn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ba)},$a=w((function(t){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var xa=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/,Ca=/\([^)]*?\);*$/,ka=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Aa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Oa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(t){return"if("+t+")return null;"},Ta={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ea(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=ja(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function ja(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return ja(t)})).join(",")+"]";var e=ka.test(t.value),n=xa.test(t.value),r=ka.test(t.value.replace(Ca,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(Ta[s])o+=Ta[s],Aa[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Na).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function Na(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Aa[t],r=Oa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ma={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:j},La=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Tr(t.modules,"transformCode"),this.dataGenFns=Tr(t.modules,"genData"),this.directives=T(T({},Ma),t.directives);var e=t.isReservedTag||N;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ia(t,e){var n=new La(e);return{render:"with(this){return "+(t?Da(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Da(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Pa(t,e);if(t.once&&!t.onceProcessed)return Ra(t,e);if(t.for&&!t.forProcessed)return Ua(t,e);if(t.if&&!t.ifProcessed)return Fa(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=za(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?Ja((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:za(e,n,!0);return"_c("+t+","+Ba(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ba(t,e));var i=t.inlineTemplate?null:za(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Ia(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+Ja(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ha(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ha))}function Va(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fa(t,e,Va,"null");if(t.for&&!t.forProcessed)return Ua(t,e,Va);var r=t.slotScope===sa?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(za(t,e)||"undefined")+":undefined":za(t,e)||"undefined":Da(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function za(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||Da)(a,e)+s}var c=n?function(t,e){for(var n=0,r=0;r]*>)","i")),d=t.replace(f,(function(t,n,r){return u=r.length,No(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-d.length,t=d,A(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(Eo.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v),c,c+v+3),x(v+3);continue}}if(jo.test(t)){var h=t.indexOf("]>");if(h>=0){x(h+2);continue}}var m=t.match(To);if(m){x(m[0].length);continue}var y=t.match(So);if(y){var g=c;x(y[0].length),A(y[1],g,c);continue}var _=C();if(_){k(_),Ro(_.tagName,t)&&x(1);continue}}var b=void 0,w=void 0,$=void 0;if(p>=0){for(w=t.slice(p);!(So.test(w)||Ao.test(w)||Eo.test(w)||jo.test(w)||($=w.indexOf("<",1))<0);)p+=$,w=t.slice(p);b=t.substring(0,p)}p<0&&(b=t),b&&x(b.length),e.chars&&b&&e.chars(b,c-b.length,c)}if(t===n){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function C(){var e=t.match(Ao);if(e){var n,r,i={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(n=t.match(Oo))&&(r=t.match(xo)||t.match($o));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function k(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}A()}(t,{warn:Uo,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,l,f){var d=r&&r.ns||Jo(t);X&&"svg"===d&&(o=function(t){for(var e=[],n=0;nc&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c':'
',Za.innerHTML.indexOf(" ")>0}var ns=!!G&&es(!1),rs=!!G&&es(!0),is=w((function(t){var e=Zn(t);return e&&e.innerHTML})),os=Cn.prototype.$mount;Cn.prototype.$mount=function(t,e){if((t=t&&Zn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=ts(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,t,e)},Cn.compile=ts,t.exports=Cn}).call(this,n("yLpj"),n("URgk").setImmediate)},KNC7:function(t,e,n){"use strict";var r=n("+OQi");n.n(r).a},L2JU:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return b}));var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){i(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,a);var s=function(t){this.register([],t,!1)};s.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},s.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},s.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var a=new o(e,n);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&i(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},s.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var c;var u=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c;var o=this,a=this.dispatch,u=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return u.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;v(this,l,[],this._modules.root),p(this,l),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:c.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)})))}(this)},l={state:{configurable:!0}};function f(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=h(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c.set(s,u,r.state)}))}var l=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}(t,e)}},state:{get:function(){return h(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e,i){var o,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,l)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,l)})),r.forEachChild((function(r,o){v(t,e,n.concat(o),r,i)}))}function h(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function m(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){c&&t===c||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},u.prototype.commit=function(t,e,n){var r=this,i=m(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},u.prototype.dispatch=function(t,e){var n=this,r=m(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}return t}))}},u.prototype.subscribe=function(t){return f(t,this._subscribers)},u.prototype.subscribeAction=function(t){return f("function"==typeof t?{before:t}:t,this._actionSubscribers)},u.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},u.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},u.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},u.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=h(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),d(this)},u.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},u.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(u.prototype,l);var g=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),b=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function $(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var k={Store:u,install:y,version:"3.1.1",mapState:g,mapMutations:_,mapGetters:b,mapActions:w,createNamespacedHelpers:function(t){return{mapState:g.bind(null,t),mapGetters:b.bind(null,t),mapMutations:_.bind(null,t),mapActions:w.bind(null,t)}}};e.a=k}).call(this,n("yLpj"))},PNDD:function(t,e,n){"use strict";var r=n("b9xv");n.n(r).a},QS6b:function(t,e){},Qi1A:function(t,e,n){var r=n("Tq2M");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},Tq2M:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".scrolltop[data-v-2c00c62a] {\n position: fixed;\n z-index: 999;\n bottom: 1rem;\n right: 1rem;\n padding: 0.48rem;\n color: #fff;\n background: #008cba;\n text-align: center;\n font-size: 100%;\n line-height: 1rem;\n cursor: pointer;\n transition: opacity 0.3s ease-in;\n}",""])},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},XuX8:function(t,e,n){t.exports=n("INkZ")},Xwsg:function(t,e,n){var r=n("/pct");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){v(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){v(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){v(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(v,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&v(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),h(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function _(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=u||(u=y(e)),r=$.bind(null,n,a,!1),i=$.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),h(t,e),e}(e),r=C.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=x.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=v(t,e);return p(n,e),function(t){for(var r=[],i=0;i1)for(var n=1;n160?.5:0},hover(){this.opacity=1},click(){window.scrollTo(0,0)}}};n("3XYq"),n("4PWN");function g(t,e,n,r,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var _=g(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isActive?n("div",{staticClass:"scrolltop",style:{opacity:t.opacity},on:{click:function(e){return t.click()},mouseover:function(e){return t.hover()},mouseout:function(e){return t.handle()}}},[n("svg",{attrs:{id:"icon-arrow-up",viewBox:"0 0 24 24",width:"24",height:"24"}},[n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",fill:"#fff"}})])]):t._e()}),[],!1,null,"c8165842",null).exports,b={show:(t={})=>new(s.a.extend(_))({el:document.createElement("div"),propsData:Object.assign({active:!0,opacity:0},t)})};_.install=function(t,e){t.prototype.$scrolling=b};var w=_,$={beforeMount(){document.querySelector("body").appendChild(this.$el)},methods:{dismiss(t){this.$notification.dismiss(t)}}},x=(n("jVfm"),n("upAJ"),g($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notification"},[n("transition-group",{attrs:{name:"fade-in-down",tag:"div"}},t._l(t.items,(function(e,r){return n("div",{key:r+0,staticClass:"notification_item",style:e.style},[n("button",{staticClass:"notification_item__close",attrs:{type:"button"},on:{click:function(e){return t.dismiss(r)}}},[t._v("×")]),t._v(" "),e.title?n("h5",{staticClass:"notification_item__heading"},[t._v(t._s(e.title))]):t._e(),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.message)}})])})),0)],1)}),[],!1,null,"c59babe8",null).exports);let C;const k={info:"rgb(91, 192, 222)",success:"rgb(67, 172, 106)",warning:"rgb(233, 144, 2)",error:"rgb(240, 65, 36)"};var A={show(t={}){if(void 0===C){let t=s.a.extend(x),e=document.createElement("div");C=new t({el:e,data:{items:[],item:{title:"",message:"",style:{}}}})}C.$data.items.push({title:t.title||!1,message:t.message||"Message is empty!",style:{backgroundColor:k[t.type||info]}}),setTimeout(()=>{C.$data.items.shift()},8e3)},info(t){this.show(Object.assign(t,{type:"info"}))},success(t){this.show(Object.assign(t,{type:"success"}))},warning(t){this.show(Object.assign(t,{type:"warning"}))},error(t){this.show(Object.assign(t,{type:"error"}))},dismiss(t){C.$data.items.splice(t,1)}};x.install=function(t,e){t.prototype.$notification=A};var O=x;function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E={name:"loading-layer",computed:function(t){for(var e=1;e=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var $=/-(\w)/g,x=w((function(t){return t.replace($,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,A=w((function(t){return t.replace(k,"-$1").toLowerCase()})),O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Z=W&&W.indexOf("edge/")>0,Q=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),tt=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(J)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===V&&(V=!J&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),V},ot=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=j,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===A(t)){var c=Bt(String,i.type);(c<0||s0&&(le((c=t(c,(n||"")+"_"+r))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):s(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(a(e._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(t):void 0}function le(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=he(e,c,t[c]))}else i={};for(var u in e)u in i||(i[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),H(i,"$stable",a),H(i,"$key",s),H(i,"$hasNormal",o),i}function he(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ye(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return fn.now()})}function pn(){var t,e;for(un=ln(),sn=!0,nn.sort((function(t,e){return t.id-e.id})),cn=0;cncn&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(pn))}}(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ht(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:j,set:j};function mn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}var yn={lazy:!0};function gn(t,e,n){var r=!it();"function"==typeof n?(hn.get=r?_n(e):bn(n),hn.set=j):(hn.get=n.get?r&&!1!==n.cache?_n(e):bn(n.get):j,hn.set=n.set||j),Object.defineProperty(t,e,hn)}function _n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function bn(t){return function(){return t.call(this,this)}}function wn(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var $n=0;function xn(t){var e=t.options;if(t.super){var n=xn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&T(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Cn(t){this._init(t)}function kn(t){return t&&(t.Ctor.options.name||t.tag)}function An(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===u.call(n)&&t.test(e));var n}function On(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=kn(a.componentOptions);s&&!e(s)&&Sn(n,o,r,i)}}}function Sn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=$n++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(xn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=pe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Ot(t,"$attrs",o&&o.attrs||r,null,!0),Ot(t,"$listeners",e._parentListeners||r,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),Ct(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){i.push(o);var a=Rt(o,e,n,t);Ot(r,o,a),o in t||mn(t,"_props",o)};for(var a in e)o(a);Ct(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?j:O(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){dt();try{return t.call(e,e)}catch(t){return Ht(t,e,"data()"),{}}finally{vt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];i&&b(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&mn(t,"_data",a))}At(e,!0)}(t):At(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new vn(t,a||j,j,yn)),i in t||gn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?S(e):e;for(var n=S(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:T,mergeOptions:Dt,defineReactive:Ot},t.set=St,t.delete=Tt,t.nextTick=ee,t.observable=function(t){return At(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,En),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Dt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)gn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),i[r]=a,a}}(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:it}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Ne}),Cn.version="2.6.10";var jn=h("style,class"),Nn=h("input,textarea,option,select,progress"),Ln=function(t,e,n){return"value"===n&&Nn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Mn=h("contenteditable,draggable,spellcheck"),In=h("events,caret,typing,plaintext-only"),Dn=function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&In(e)?e:"true"},Pn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Un=function(t){return Fn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function Hn(t,e){return{staticClass:Vn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Vn(t,e){return t?e?t+" "+e:t:e||""}function zn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?hr(t,e,n):Pn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Mn(e)?t.setAttribute(e,Dn(e,n)):Fn(e)?Bn(n)?t.removeAttributeNS(Rn,Un(e)):t.setAttributeNS(Rn,e,n):hr(t,e,n)}function hr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(X&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var mr={create:dr,update:dr};function yr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Hn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Hn(e,n.data));return function(t,e){return o(t)||o(e)?Vn(t,zn(e)):""}(e.staticClass,e.class)}(e),c=n._transitionClasses;o(c)&&(s=Vn(s,zn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,_r,br,wr,$r,xr,Cr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=t.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(d,r).trim()),d=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:t.slice(0,wr),key:'"'+t.slice(wr+1)+'"'}:{exp:t,key:null};for(_r=t,wr=$r=xr=0;!Vr();)zr(br=Hr())?Jr(br):91===br&&qr(br);return{exp:t.slice(0,$r),key:t.slice($r+1,xr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Hr(){return _r.charCodeAt(++wr)}function Vr(){return wr>=gr}function zr(t){return 34===t||39===t}function qr(t){var e=1;for($r=wr;!Vr();)if(zr(t=Hr()))Jr(t);else if(91===t&&e++,93===t&&e--,0===e){xr=wr;break}}function Jr(t){for(var e=t;!Vr()&&(t=Hr())!==e;);}var Gr,Kr="__r",Wr="__c";function Xr(t,e,n){var r=Gr;return function i(){null!==e.apply(null,arguments)&&Qr(t,i,n,r)}}var Yr=Gt&&!(tt&&Number(tt[1])<=53);function Zr(t,e,n,r){if(Yr){var i=un,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Gr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Qr(t,e,n,r){(r||Gr).removeEventListener(t,e._wrapper||e,n)}function ti(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Gr=e.elm,function(t){if(o(t[Kr])){var e=X?"change":"input";t[e]=[].concat(t[Kr],t[e]||[]),delete t[Kr]}o(t[Wr])&&(t.change=[].concat(t[Wr],t.change||[]),delete t[Wr])}(n),ae(n,r,Zr,Qr,Xr,e.context),Gr=void 0}}var ei,ni={create:ti,update:ti};function ri(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);ii(a,u)&&(a.value=u)}else if("innerHTML"===n&&Gn(a.tagName)&&i(a.innerHTML)){(ei=ei||document.createElement("div")).innerHTML=""+r+"";for(var l=ei.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var oi={create:ri,update:ri},ai=w((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function si(t){var e=ci(t.style);return t.staticStyle?T(t.staticStyle,e):e}function ci(t){return Array.isArray(t)?E(t):"string"==typeof t?ai(t):t}var ui,li=/^--/,fi=/\s*!important$/,pi=function(t,e,n){if(li.test(e))t.style.setProperty(e,n);else if(fi.test(n))t.style.setProperty(A(e),n.replace(fi,""),"important");else{var r=vi(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(yi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _i(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(yi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function bi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,wi(t.name||"v")),T(e,t),e}return"string"==typeof t?wi(t):void 0}}var wi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),$i=J&&!Y,xi="transition",Ci="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";$i&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ei(t){Ti((function(){Ti(t)}))}function ji(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),gi(t,e))}function Ni(t,e){t._transitionClasses&&g(t._transitionClasses,e),_i(t,e)}function Li(t,e,n){var r=Ii(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===xi?Ai:Si,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(n=xi,l=a,f=o.length):e===Ci?u>0&&(n=Ci,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?xi:Ci:null)?n===xi?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===xi&&Mi.test(r[ki+"Property"])}}function Di(t,e){for(;t.length1}function Hi(t,e){!0!==e.data.show&&Ri(e)}var Vi=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;ev?_(t,i(n[y+1])?null:n[y+1].elm,n,d,y,r):d>y&&w(0,e,p,v)}(p,h,y,n,l):o(y)?(o(t.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,n)):o(h)?w(0,h,0,h.length-1):o(t.text)&&u.setTextContent(p,""):t.text!==e.text&&u.setTextContent(p,e.text),o(v)&&o(d=v.hook)&&o(d=d.postpatch)&&d(t,e)}}}function k(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(M(Ki(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Gi(t,e){return e.every((function(e){return!M(e,t)}))}function Ki(t){return"_value"in t?t._value:t.value}function Wi(t){t.target.composing=!0}function Xi(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Zi(t){return!t.componentInstance||t.data&&t.data.transition?t:Zi(t.componentInstance._vnode)}var Qi={model:zi,show:{bind:function(t,e,n){var r=e.value,i=(n=Zi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Zi(n)).data&&n.data.transition?(n.data.show=!0,r?Ri(n,(function(){t.style.display=t.__vOriginalDisplay})):Fi(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},to={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function eo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?eo(Je(e.children)):t}function no(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var io=function(t){return t.tag||qe(t)},oo=function(t){return"show"===t.name},ao={name:"transition",props:to,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=eo(i);if(!o)return i;if(this._leaving)return ro(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=no(this),u=this._vnode,l=eo(u);if(o.data.directives&&o.data.directives.some(oo)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!qe(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ro(t,i);if("in-out"===r){if(qe(o))return u;var p,d=function(){p()};se(c,"afterEnter",d),se(c,"enterCancelled",d),se(f,"delayLeave",(function(t){p=t}))}}return i}}},so=T({tag:String,moveClass:String},to);function co(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function uo(t){t.data.newPos=t.elm.getBoundingClientRect()}function lo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Xn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Xn[t]=/HTMLUnknownElement/.test(e.toString())},T(Cn.options.directives,Qi),T(Cn.options.components,fo),Cn.prototype.__patch__=J?Vi:j,Cn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),en(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&J?Zn(t):void 0,e)},J&&setTimeout((function(){U.devtools&&ot&&ot.emit("init",Cn)}),0);var po,vo=/\{\{((?:.|\r?\n)+?)\}\}/g,ho=/[-.*+?^${}()|[\]\/\\]/g,mo=w((function(t){var e=t[0].replace(ho,"\\$&"),n=t[1].replace(ho,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),yo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Pr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Dr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},go={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Pr(t,"style");n&&(t.staticStyle=JSON.stringify(ai(n)));var r=Dr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},_o=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),bo=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=h("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),$o=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+B.source+"]*",ko="((?:"+Co+"\\:)?"+Co+")",Ao=new RegExp("^<"+ko),Oo=/^\s*(\/?)>/,So=new RegExp("^<\\/"+ko+"[^>]*>"),To=/^]+>/i,Eo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Do=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=h("pre,textarea",!0),Ro=function(t,e){return t&&Po(t)&&"\n"===e[0]};function Fo(t,e){var n=e?Do:Io;return t.replace(n,(function(t){return Mo[t]}))}var Uo,Bo,Ho,Vo,zo,qo,Jo,Go,Ko=/^@|^v-on:/,Wo=/^v-|^@|^:/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,Qo=/^\[.*\]$/,ta=/:(.*)$/,ea=/^:|^\.|^v-bind:/,na=/\.[^.\]]+(?=[^\]]*$)/g,ra=/^v-slot(:|$)|^#/,ia=/[\r\n]/,oa=/\s+/g,aa=w((function(t){return(po=po||document.createElement("div")).innerHTML=t,po.textContent})),sa="_empty_";function ca(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:va(e),rawAttrsMap:{},parent:n,children:[]}}function ua(t,e){var n,r;(r=Dr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Dr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Pr(t,"scope"),t.slotScope=e||Pr(t,"slot-scope")):(e=Pr(t,"slot-scope"))&&(t.slotScope=e);var n=Dr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||jr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Rr(t,ra);if(r){var i=pa(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||sa}}else{var s=Rr(t,ra);if(s){var c=t.scopedSlots||(t.scopedSlots={}),u=pa(s),l=u.name,f=u.dynamic,p=c[l]=ca("template",[],t);p.slotTarget=l,p.slotTargetDynamic=f,p.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=p,!0})),p.slotScope=s.value||sa,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Dr(t,"name"))}(t),function(t){var e;(e=Dr(t,"is"))&&(t.component=e),null!=Pr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Ir(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=Dr(t,"value")||"null";Er(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Ir(t,"change",Br(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Kr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(e,l);c&&(f="if($event.target.composing)return;"+f),Er(t,"value","("+e+")"),Ir(t,u,f,null,!0),(s||a)&&Ir(t,"blur","$forceUpdate()")}(t,r,i);else if(!U.isReservedTag(o))return Ur(t,r,i),!1;return!0},text:function(t,e){e.value&&Er(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Er(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:_o,mustUseProp:Ln,canBeLeftOpenTag:bo,isReservedTag:Kn,getTagNamespace:Wn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ba)},$a=w((function(t){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var xa=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/,Ca=/\([^)]*?\);*$/,ka=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Aa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Oa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(t){return"if("+t+")return null;"},Ta={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ea(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=ja(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function ja(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return ja(t)})).join(",")+"]";var e=ka.test(t.value),n=xa.test(t.value),r=ka.test(t.value.replace(Ca,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(Ta[s])o+=Ta[s],Aa[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Na).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function Na(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Aa[t],r=Oa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var La={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:j},Ma=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Tr(t.modules,"transformCode"),this.dataGenFns=Tr(t.modules,"genData"),this.directives=T(T({},La),t.directives);var e=t.isReservedTag||N;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ia(t,e){var n=new Ma(e);return{render:"with(this){return "+(t?Da(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Da(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Pa(t,e);if(t.once&&!t.onceProcessed)return Ra(t,e);if(t.for&&!t.forProcessed)return Ua(t,e);if(t.if&&!t.ifProcessed)return Fa(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=za(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?Ga((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:za(e,n,!0);return"_c("+t+","+Ba(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ba(t,e));var i=t.inlineTemplate?null:za(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Ia(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+Ga(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ha(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ha))}function Va(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fa(t,e,Va,"null");if(t.for&&!t.forProcessed)return Ua(t,e,Va);var r=t.slotScope===sa?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(za(t,e)||"undefined")+":undefined":za(t,e)||"undefined":Da(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function za(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||Da)(a,e)+s}var c=n?function(t,e){for(var n=0,r=0;r]*>)","i")),p=t.replace(f,(function(t,n,r){return u=r.length,No(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-p.length,t=p,A(l,c-u,c)}else{var d=t.indexOf("<");if(0===d){if(Eo.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v),c,c+v+3),x(v+3);continue}}if(jo.test(t)){var h=t.indexOf("]>");if(h>=0){x(h+2);continue}}var m=t.match(To);if(m){x(m[0].length);continue}var y=t.match(So);if(y){var g=c;x(y[0].length),A(y[1],g,c);continue}var _=C();if(_){k(_),Ro(_.tagName,t)&&x(1);continue}}var b=void 0,w=void 0,$=void 0;if(d>=0){for(w=t.slice(d);!(So.test(w)||Ao.test(w)||Eo.test(w)||jo.test(w)||($=w.indexOf("<",1))<0);)d+=$,w=t.slice(d);b=t.substring(0,d)}d<0&&(b=t),b&&x(b.length),e.chars&&b&&e.chars(b,c-b.length,c)}if(t===n){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function C(){var e=t.match(Ao);if(e){var n,r,i={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(n=t.match(Oo))&&(r=t.match(xo)||t.match($o));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function k(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=t.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}A()}(t,{warn:Uo,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,l,f){var p=r&&r.ns||Go(t);X&&"svg"===p&&(o=function(t){for(var e=[],n=0;nc&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c':'
',Za.innerHTML.indexOf(" ")>0}var ns=!!J&&es(!1),rs=!!J&&es(!0),is=w((function(t){var e=Zn(t);return e&&e.innerHTML})),os=Cn.prototype.$mount;Cn.prototype.$mount=function(t,e){if((t=t&&Zn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=ts(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,t,e)},Cn.compile=ts,t.exports=Cn}).call(this,n("yLpj"),n("URgk").setImmediate)},L2JU:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return b}));var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){i(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,a);var s=function(t){this.register([],t,!1)};s.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},s.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(t){!function t(e,n,r){0;n.update(r);if(r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},s.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var a=new o(e,n);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&i(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},s.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var c;var u=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c;var o=this,a=this.dispatch,u=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return u.call(o,t,e,n)},this.strict=i;var l=this._modules.root.state;v(this,l,[],this._modules.root),d(this,l),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:c.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)})))}(this)},l={state:{configurable:!0}};function f(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),d(t,n,e)}function d(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=h(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c.set(s,u,r.state)}))}var l=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}(t,e)}},state:{get:function(){return h(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e,i){var o,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}(t,r,i,l)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,l)})),r.forEachChild((function(r,o){v(t,e,n.concat(o),r,i)}))}function h(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function m(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){c&&t===c||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},u.prototype.commit=function(t,e,n){var r=this,i=m(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},u.prototype.dispatch=function(t,e){var n=this,r=m(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}return t}))}},u.prototype.subscribe=function(t){return f(t,this._subscribers)},u.prototype.subscribeAction=function(t){return f("function"==typeof t?{before:t}:t,this._actionSubscribers)},u.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},u.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},u.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),d(this,this.state)},u.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=h(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),p(this)},u.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},u.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(u.prototype,l);var g=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=C(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),b=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=x((function(t,e){var n={};return $(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=C(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function $(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}var k={Store:u,install:y,version:"3.1.1",mapState:g,mapMutations:_,mapGetters:b,mapActions:w,createNamespacedHelpers:function(t){return{mapState:g.bind(null,t),mapGetters:b.bind(null,t),mapMutations:_.bind(null,t),mapActions:w.bind(null,t)}}};e.a=k}).call(this,n("yLpj"))},PNDD:function(t,e,n){"use strict";var r=n("b9xv");n.n(r).a},QS6b:function(t,e){},QWC8:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".notification[data-v-c59babe8] {\n position: fixed;\n display: flex;\n flex-direction: column;\n z-index: 10000;\n top: 15px;\n right: 0;\n width: 100%;\n min-height: 1px;\n padding: 0 15px;\n}\n.notification_item[data-v-c59babe8] {\n position: relative;\n display: block;\n width: 100%;\n border: none;\n box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);\n padding: 0.65rem 1.3rem;\n margin-bottom: 1.3rem;\n color: #fff;\n}\n.notification_item__close[data-v-c59babe8] {\n position: absolute;\n display: inline-block;\n right: 0;\n top: 0;\n background: transparent;\n color: inherit;\n font-size: 1.35rem;\n font-weight: bold;\n outline: none;\n border: none;\n padding: 0.15rem 0.65rem;\n cursor: pointer;\n opacity: 0.5;\n transition: opacity 0.3s ease-in;\n}\n.notification_item__close[data-v-c59babe8]:hover {\n opacity: 1;\n}\n.notification_item__heading[data-v-c59babe8] {\n color: inherit;\n font-family: inherit;\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.2;\n margin-top: 0;\n margin-bottom: 0.65rem;\n}\n.notification_item.fade-in-down-enter-active[data-v-c59babe8], .notification_item.fade-in-down-leave-active[data-v-c59babe8] {\n transition: opacity 0.5s;\n}\n.notification_item.fade-in-down-enter[data-v-c59babe8], .notification_item.fade-in-down-leave-to[data-v-c59babe8] {\n opacity: 0;\n}\n.notification_item.fade-in-down-enter-active[data-v-c59babe8] {\n -webkit-animation: fade-in-down-data-v-c59babe8 0.5s;\n animation: fade-in-down-data-v-c59babe8 0.5s;\n}\n.notification_item.fade-in-down-leave-active[data-v-c59babe8] {\n animation: fade-in-down-data-v-c59babe8 0.5s reverse;\n}\n@media (min-width: 768px) {\n.notification[data-v-c59babe8] {\n flex: 0 0 50%;\n max-width: 50%;\n}\n}\n@media (min-width: 992px) {\n.notification[data-v-c59babe8] {\n flex: 0 0 33.33333%;\n max-width: 33.33333%;\n}\n}\n@media (min-width: 1376px) {\n.notification[data-v-c59babe8] {\n flex: 0 0 25%;\n max-width: 25%;\n}\n}\n@-webkit-keyframes fade-in-down-data-v-c59babe8 {\n0% {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n}\n100% {\n opacity: 1;\n transform: none;\n}\n}\n@keyframes fade-in-down-data-v-c59babe8 {\n0% {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n}\n100% {\n opacity: 1;\n transform: none;\n}\n}",""])},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},XuX8:function(t,e,n){t.exports=n("INkZ")},Xwsg:function(t,e,n){var r=n("/pct");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,f=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){v(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){v(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){v(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(v,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&v(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),h(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function _(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=u||(u=y(e)),r=$.bind(null,n,a,!1),i=$.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),h(t,e),e}(e),r=C.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=x.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=v(t,e);return d(n,e),function(t){for(var r=[],i=0;i
- + @if ($errors->has('password')) {{ $errors->first('password') }} @endif @@ -39,7 +39,7 @@
- +