(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["doesburg"]=e(require("vue")):t["doesburg"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){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,{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="fb15")}({"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),h=n("62a0"),d=n("5168"),p=n("ccb9"),v=n("6718"),g=n("47ee"),y=n("9003"),m=n("e4ae"),b=n("f772"),x=n("36c3"),w=n("1bc3"),S=n("aebd"),I=n("a159"),_=n("0395"),E=n("bf0b"),O=n("d9f6"),C=n("c3a1"),k=E.f,R=O.f,L=_.f,j=r.Symbol,P=r.JSON,T=P&&P.stringify,M="prototype",H=d("_hidden"),W=d("toPrimitive"),N={}.propertyIsEnumerable,F=l("symbol-registry"),A=l("symbols"),$=l("op-symbols"),z=Object[M],D="function"==typeof j,V=r.QObject,B=!V||!V[M]||!V[M].findChild,U=o&&u(function(){return 7!=I(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(z,e);r&&delete z[e],R(t,e,n),r&&t!==z&&R(z,e,r)}:R,G=function(t){var e=A[t]=I(j[M]);return e._k=t,e},q=D&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},X=function(t,e,n){return t===z&&X($,e,n),m(t),e=w(e,!0),m(n),i(A,e)?(n.enumerable?(i(t,H)&&t[H][e]&&(t[H][e]=!1),n=I(n,{enumerable:S(0,!1)})):(i(t,H)||R(t,H,S(1,{})),t[H][e]=!0),U(t,e,n)):R(t,e,n)},Y=function(t,e){m(t);var n,r=g(e=x(e)),i=0,o=r.length;while(o>i)X(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?I(t):Y(I(t),e)},K=function(t){var e=N.call(this,t=w(t,!0));return!(this===z&&i(A,t)&&!i($,t))&&(!(e||!i(this,t)||!i(A,t)||i(this,H)&&this[H][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==z||!i(A,e)||i($,e)){var n=k(t,e);return!n||!i(A,e)||i(t,H)&&t[H][e]||(n.enumerable=!0),n}},Z=function(t){var e,n=L(x(t)),r=[],o=0;while(n.length>o)i(A,e=n[o++])||e==H||e==c||r.push(e);return r},tt=function(t){var e,n=t===z,r=L(n?$:x(t)),o=[],a=0;while(r.length>a)!i(A,e=r[a++])||n&&!i(z,e)||o.push(A[e]);return o};D||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call($,n),i(this,H)&&i(this[H],t)&&(this[H][t]=!1),U(this,t,S(1,n))};return o&&B&&U(z,t,{configurable:!0,set:e}),G(t)},s(j[M],"toString",function(){return this._k}),E.f=Q,O.f=X,n("6abf").f=_.f=Z,n("355d").f=K,n("9aa9").f=tt,o&&!n("b8e3")&&s(z,"propertyIsEnumerable",K,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!D,{Symbol:j});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=C(d.store),it=0;rt.length>it;)v(rt[it++]);a(a.S+a.F*!D,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!D,"Object",{create:J,defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),P&&a(a.S+a.F*(!D||u(function(){var t=j();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!q(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,T.apply(P,r)}}),j[M][W]||n("35e8")(j[M],W,j[M].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",v="values",g=function(){return this};t.exports=function(t,e,n,y,m,b,x){c(n,e,y);var w,S,I,_=function(t){if(!h&&t in k)return k[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",O=m==v,C=!1,k=t.prototype,R=k[f]||k[d]||m&&k[m],L=R||_(m),j=m?O?_("entries"):L:void 0,P="Array"==e&&k.entries||R;if(P&&(I=l(P.call(new t)),I!==Object.prototype&&I.next&&(u(I,E,!0),r||"function"==typeof I[f]||a(I,f,g))),O&&R&&R.name!==v&&(C=!0,L=function(){return R.call(this)}),r&&!x||!h&&!C&&k[f]||a(k,f,L),s[e]=L,s[E]=g,m)if(w={values:O?L:_(v),keys:b?L:_(p),entries:j},x)for(S in w)S in k||o(k,S,w[S]);else i(i.P+i.F*(h||C),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,c=0;while(s>c)r.f(t,n=a[c++],e[n]);return t}},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),u=s("species"),l=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),d=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),p=d?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!e}):void 0;if(!d||!p||"replace"===t&&!l||"split"===t&&!f){var v=/./[h],g=n(a,h,""[t],function(t,e,n,r,i){return e.exec===c?d&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),y=g[0],m=g[1];r(String.prototype,t,y),i(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i1||""[d](/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);var o,a,s,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?g:e>>>0,y=new RegExp(t.source,l+"g");while(o=u.call(y,i)){if(a=y[v],a>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index=d))break;y[v]===o.index&&y[v]++}return f===i[p]?!s&&y.test("")||c.push(""):c.push(i.slice(f)),c[p]>d?c.slice(0,d):c}:"0"[d](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(t,e){var r=l(m,t,this,e,m!==n);if(r.done)return r.value;var u=i(t),h=String(this),d=o(u,RegExp),p=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(y?"y":"g"),b=new d(y?u:"^(?:"+u.source+")",v),x=void 0===e?g:e>>>0;if(0===x)return[];if(0===h.length)return null===c(b,h)?[h]:[];var w=0,S=0,I=[];while(S";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32a6":function(t,e,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",function(){return function(t){return i(r(t))}})},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36bd":function(t,e,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");t.exports=function(t){var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>s)e[s++]=t;return e}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},"382e":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".alt-grid-container{position:relative}.alt-grid-container .alt-grid-item{position:absolute;background:grey}.alt-grid-container .alt-grid-item.can-drag{cursor:move}.alt-grid-container.alt-grid-container-operating .alt-grid-item{-webkit-transition-duration:.3s;transition-duration:.3s}.alt-grid-container.alt-grid-container-operating .alt-grid-item.operated-item{-webkit-transition-duration:.1s;transition-duration:.1s}.alt-grid-container .alt-grid-item:hover .alt-grid-item-resize-handler{display:block}.alt-grid-container .alt-grid-item-resize-handler{display:none;position:absolute;right:1px;bottom:1px;cursor:se-resize}.alt-grid-container .alt-g-i-r-h-default-style{width:0;height:0;border-top:5px solid transparent;border-left:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000}.alt-grid-item-drag-placeholder{position:absolute;width:0;height:0;background:red;visibility:hidden}.alt-grid-container-operating .alt-grid-item-drag-placeholder{visibility:visible}.alt-grid-container-operating{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.alt-grid-container-operating .mask{width:100%;height:100%;position:absolute;z-index:2}.alt-grid-container-operating.alt-move .mask{cursor:move}.alt-grid-container-operating.alt-resize .mask{cursor:se-resize}",""])},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386d":function(t,e,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var l=o(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===l?-1:l.index}]})},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3b2b":function(t,e,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),c=n("0bfb"),u=r.RegExp,l=u,f=u.prototype,h=/a/g,d=/a/g,p=new u(h)!==h;if(n("9e1e")&&(!p||n("79e5")(function(){return d[n("2b4c")("match")]=!1,u(h)!=h||u(d)==d||"/a/i"!=u(h,"i")}))){u=function(t,e){var n=this instanceof u,r=s(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(p?new l(r&&!o?t.source:t,e):l((r=t instanceof u)?t.source:t,r&&o?c.call(t):e),n?this:f,u)};for(var v=function(t){t in u||o(u,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},g=a(l),y=0;g.length>y;)v(g[y++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(t,e,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),c=o.f,u=0;while(s.length>u)c.call(t,a=s[u++])&&e.push(a)}return e}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,function(t,e,n,s){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this);if(!c.global)return a(c,u);var l=c.unicode;c.lastIndex=0;var f,h=[],d=0;while(null!==(f=a(c,u))){var p=String(f[0]);h[d]=p,""===p&&(c.lastIndex=o(u,i(c.lastIndex),l)),d++}return 0===d?null:h}]})},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i1&&o.call(a[0],n,function(){for(l=1;ll)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(t,e,n){var l,f,h,d,p=t&u.F,v=t&u.G,g=t&u.S,y=t&u.P,m=t&u.B,b=v?r:g?r[e]||(r[e]={}):(r[e]||{})[c],x=v?i:i[e]||(i[e]={}),w=x[c]||(x[c]={});for(l in v&&(n=e),n)f=!p&&b&&void 0!==b[l],h=(f?b:n)[l],d=m&&f?s(h,r):y&&"function"==typeof h?s(Function.call,h):h,b&&a(b,l,h,t&u.U),x[l]!=h&&o(x,l,d),y&&w[l]!=h&&(w[l]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),c="prototype",u=function(t,e,n){var l,f,h,d=t&u.F,p=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,m=t&u.W,b=p?i:i[e]||(i[e]={}),x=b[c],w=p?r:v?r[e]:(r[e]||{})[c];for(l in p&&(n=e),n)f=!d&&w&&void 0!==w[l],f&&s(b,l)||(h=f?w[l]:n[l],b[l]=p&&"function"!=typeof w[l]?n[l]:y&&f?o(h,r):m&&w[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[l]=h,t&u.R&&x&&!x[l]&&a(x,l,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},6718:function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],c=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):s.name!=a&&c(function(){return s.call(this)})},"6c7b":function(t,e,n){var r=n("5ca1");r(r.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7cdf":function(t,e,n){var r=n("5ca1");r(r.S,"Number",{isInteger:n("9c12")})},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,c=0;while(s>c)r.f(t,n=a[c++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(e,n){e.exports=t},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(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)}}},"9c12":function(t,e,n){var r=n("d3f4"),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,v){return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=v(n,t,this,e);if(i.done)return i.value;var f=r(t),h=String(this),d="function"===typeof e;d||(e=String(e));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}var b=[];while(1){var x=c(f,h);if(null===x)break;if(b.push(x),!y)break;var w=String(x[0]);""===w&&(f.lastIndex=s(h,o(f.lastIndex),m))}for(var S="",I=0,_=0;_=I&&(S+=h.slice(I,O)+j,I=O+E.length)}return S+h.slice(I)}];function g(t,e,r,o,a,s){var c=r+t.length,u=o.length,l=d;return void 0!==a&&(a=i(a),l=h),n.call(s,l,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var h=f(l/10);return 0===h?n:h<=u?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s})}})},a4bb:function(t,e,n){t.exports=n("8aae")},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(t,e,n){var i={},s=o(function(){return!!a[t]()||c[t]()!=c}),u=i[t]=s?e(h):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),v=0;v0?i(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;e.f=n("8e60")?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},bf90:function(t,e,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),l=o(a,u);if(t&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,h=n("aa77").trim,d="Number",p=r[d],v=p,g=p.prototype,y=o(n("2aeb")(g))==d,m="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,c=e.slice(2),u=0,l=c.length;ui)return NaN;return parseInt(c,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(y?c(function(){g.valueOf.call(n)}):o(n)!=d)?a(new v(b(e)),n,p):b(e)};for(var x,w=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)i(v,x=w[S])&&!i(p,x)&&f(p,x,l(v,x));p.prototype=g,g.constructor=p,n("2aba")(r,d,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},ce7e:function(t,e,n){var r=n("63b6"),i=n("584a"),o=n("294c");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d812:function(t,e,n){"use strict";var r=n("4f6b"),i=n.n(r);i.a},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(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)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(t,e,n){t.exports=n("ed33")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},ebfd:function(t,e,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("294c")(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return u&&p.NEED&&c(t)&&!o(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("268f"),o=n.n(i),a=n("e265"),s=n.n(a),c=n("a4bb"),u=n.n(c),l=n("85f2"),f=n.n(l);function h(t,e,n){return e in t?f()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;j(this,t),this.appendUniqueId(e),this.x=this.isNotNegativeNumber(e.x)?e.x:0,this.y=this.isNotNegativeNumber(e.y)?e.y:0,this.w=this.isPositiveNumber(e.w)?e.w:1,this.h=this.isPositiveNumber(e.h)?e.h:1,this.id=e._id,this.rawInfo=e,this.coors=n}return T(t,[{key:"setPos",value:function(t){for(var e,n,r=["x","y","w","h"],i=0,o=r.length;ithis.coors.maxWidth&&(t=this.coors.maxWidth-this.w),t<0&&(t=0),e<0&&(e=0),this.coors._moveTo(this.id,{x:t,y:e})}},{key:"resizeTo",value:function(t,e){this.coors.maxWidth&&t+this.x>this.coors.maxWidth&&(t=this.coors.maxWidth-this.x),t<1&&(t=1),e<1&&(e=1),this.coors._resizeTo(this.id,{w:t,h:e})}},{key:"moveDown",value:function(t){this.coors._moveDown(this.id,t)}},{key:"fill",value:function(t){this.coors.coorsFillRect(this.x,this.y,this.w,this.h,t)}},{key:"isPositiveNumber",value:function(t){return!b(t)&&t>0}},{key:"isNotNegativeNumber",value:function(t){return!b(t)&&t>=0}},{key:"appendUniqueId",value:function(t){t._id||(t._id=this.getUniqueId())}},{key:"getUniqueId",value:function(t,e){var n,r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(e=e||i.length,t)for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{};j(this,t),this.coors=[],this.coorItemsMap={},this.maxWidth=e.maxWidth}return T(t,[{key:"add",value:function(t){var e=new H(t,this);return this.distributeRectPosition(e),this.coorsFillRect(e.x,e.y,e.w,e.h,e),this.coorItemsMap[e.id]=e,e}},{key:"coorsFillRect",value:function(t,e,n,r,i){for(var o,a=this.coors,s=e;s(a[n]||0)&&(a[n]=c)});for(var u=this.maxWidth||a.length+i,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};if(!b(e.x)&&!b(e.y)){var n=this.coorItemsMap[t];n.fill(null);var r={x:e.x,y:e.y,w:n.w,h:n.h},i=this.coorsGetFirstItemForColsInRect(r),o={x:r.x,y:r.y+r.h,w:r.w};_(i,function(t){t.moveDown(o.y-t.y)}),n.setPos(r),this.coorsFillRect(r.x,r.y,r.w,r.h,n),this._moveUpAll()}}},{key:"_resizeTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!b(e.w)&&!b(e.h)){var n=this.coorItemsMap[t];n.fill(null);var r={x:n.x,y:n.y,w:e.w,h:e.h},i=this.coorsGetFirstItemForColsInRect(r),o={x:r.x,y:r.y+r.h,w:r.w};_(i,function(t){t.moveDown(o.y-t.y)}),n.setPos(r),n.fill(n),this._moveUpAll()}}},{key:"_moveDown",value:function(t,e){var n=this.coorItemsMap[t];n.fill(null);var r=this.coorsGetFirstItemForColsInRect({x:n.x,y:n.y+n.h,w:n.w,h:n.h+e}),i={x:n.x,y:n.y+n.h+e,w:n.w};_(r,function(t){t.moveDown(i.y-t.y)}),n.setPos({y:n.y+e}),n.fill(n)}},{key:"coorsGetFirstItemForColsInRect",value:function(t){for(var e,n,r=t.x,i=t.y,o=t.w,a=t.h,s=[],c=[],u=i;u=o)break}return s}},{key:"checkLineIsLegal",value:function(t,e){for(var n=t.x;n=0;a--){r=this.coors[a]||[];for(var s=t;s"},Q=K,Z=V(Q,B,U,!1,null,null,null),tt=Z.exports,et={props:["altCardProps"]},nt=et,rt=V(nt,G,q,!1,null,null,null),it=rt.exports,ot={layout:{type:Array,default:function(){return[]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},rowHeight:{type:Number,default:150,validator:function(t){return!isNaN(t)&&t>0}},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},colNum:{type:Number,default:12},backgroundColor:{type:String,default:"rgba(200,200,200,1)"},gridItemClass:{type:String,default:""},closeHandlerClass:{type:String,default:""},resizeHandlerClass:{type:String,default:"alt-g-i-r-h-default-style"},placeholderClass:{type:String,default:""},isShowOriginCloseBtn:{type:Boolean,default:!0},width:{type:[Number,Boolean],default:!1}},at=ot,st=x(),ct={name:"alt-grid-layout",addWidgetType:function(){var t=arguments[0],e=m(t);if("string"===e)this._addWidgetType.apply(this,arguments);else if("object"===e)for(var n in t)t.hasOwnProperty(n)&&this._addWidgetType(n,t[n])},_addWidgetType:function(t,e){var n=e.template?tt:J;e.super!=st?this.components[t]=d({},e,{extends:n}):this.components[t]=e.extend(it)},props:at,data:function(){return{innerLayout:[],defVal:{minH:1,minW:1,maxH:1/0,maxW:1/0,isDraggable:!0,isResizable:!0,isShowOriginCloseBtn:!0,dragIgnoreFrom:"a, input, button, textarea"},containerHeight:0,cols:[],cacheComputed:{},placeholder:null,preOperator:0,operator:0,operatedItem:null,containerWidth:0,boxWatchHandler:null,coors:null,timer:null,animation:null,animationHandler:null,eventHandler:{mousedown:null,mousemove:null,mouseup:null}}},mounted:function(){var t=this;this.initCols(),!1===this.width&&(this.boxWatchHandler=new L(this.$el,function(){t.initCols()})),this.bindEvents(),this.setLayout(this.layout)},destroyed:function(){this.boxWatchHandler.destroy(),this.unbindEvents(),clearTimeout(this.timer)},watch:{rowHeight:function(){this.reRenderStyle({triggerEventEnd:!0,onlyReRender:!0})},colNum:function(t){this.coors&&(this.coors.setMaxWidth=parseInt(t)),this.initCols()},cols:function(){this.cacheComputed={},this.operator||this.reRenderStyle({triggerEventEnd:!0,onlyReRender:!0})},margin:function(){this.cacheComputed={},this.reRenderStyle()},backgroundColor:function(){this.forceReRenderStyle()},width:function(){this.initCols()}},computed:{containerStyle:function(){return{height:this.containerHeight+"px"}},operatorClass:function(){return this.operator?1===this.operator?"alt-grid-container-operating alt-move":2===this.operator?"alt-grid-container-operating alt-resize":"":""}},methods:{resetResize:function(){var t=this;this.boxWatchHandler.destroy(),this.boxWatchHandler=new L(this.$el,function(){t.initCols()})},bindEvents:function(){this.eventHandler.mousedown=this.mousedown.bind(this),this.eventHandler.mousemove=this.mousemove.bind(this),this.eventHandler.mouseup=this.mouseup.bind(this),this.$el.addEventListener("mousedown",this.eventHandler.mousedown),document.addEventListener("mousemove",this.eventHandler.mousemove),document.addEventListener("mouseup",this.eventHandler.mouseup)},unbindEvents:function(){this.$el.removeEventListener("mousedown",this.eventHandler.mousedown),document.removeEventListener("mousemove",this.eventHandler.mousemove),document.removeEventListener("mouseup",this.eventHandler.mouseup)},canDragClass:function(t){return I(t,this.isDraggable,!0)?"can-drag":""},forceReRenderStyle:function(){var t=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){t.innerLayout.forEach(function(e){var n=t.getCardStyle(e);t.$set(e,"_alt_style",n)})},10)},reRenderStyle:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ignoreId,r=e.triggerEventEnd,i=e.onlyReRender;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){t.containerHeight=0,t.innerLayout.forEach(function(e,o){if(e._id!==n){var a=t.$refs.cards[o],s={style:a.style,width:a.style.width,height:a.style.height,transform:a.style.transform};s.transform&&(s.transform=s.transform.replace(/\s/g,""));var c=t.getCardStyle(e,!0);t.$set(e,"_alt_style",c.style);var u=t.getCardRectChangeStatus(s,c,["width","height","transform"],{triggerEventEnd:r});"none"!==u&&t.dispatchEvent(e._id,u,{w:e.w,h:e.h,x:e.x,y:e.y,layout:t.innerLayout,onlyReRender:i})}})},10)},getCardRectChangeStatus:function(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.triggerEventEnd,o=n||Object.keys(t),a=0,s=o.length;a0?this.width:0,this.colNum!==this.cols.length||!this.containerWidth||this.containerWidth!==t){this.containerWidth=t;for(var e=this.colNum,n=[],r=t%e,i=Math.floor(t/e),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];this.coors||(this.coors=new N({maxWidth:this.colNum})),this.coors.clear(),this.coors.batchAddItem(e);var n=this.coors.getAllItems();n.forEach(function(e){var n=t.getCardStyle(e);t.$set(e,"_alt_style",n)}),this.innerLayout=n,/_env=altdev/.test(window.location.search)&&F(this,this.innerLayout)},setContainerHeight:function(t,e){var n=this.containerHeight,r=t+e;r>n&&(this.containerHeight=r)},getCardStyle:function(t,e){if(!t)return{};var n=this.computeColsWidth(0,t.x)+"px",r=this.getCardWidth(t.x,t.x+t.w)+"px",i=t.y*this.rowHeight,o=i+"px",a=t.h*this.rowHeight-this.margin[1],s=a+"px";this.setContainerHeight(i,a);var c="translate3d(".concat(n,",").concat(o,",0px)"),u="transform:".concat(c,";width:").concat(r,";height:").concat(s,";background-color:").concat(this.backgroundColor,";");return e?{style:u,x:n,y:i,width:r,height:a,transform:c}:u},getCardStyleForRealTime:function(t){if(t){var e=t.w,n=t.x;n<0?n=0:n+e>this.containerWidth&&(n=this.containerWidth-e);var r=t.y;r<0&&(r=0);var i="transform:translate3d(".concat(n,"px,").concat(r,"px,0);"),o="".concat(i,"width:").concat(e,"px;height:").concat(t.h,"px;background-color:").concat(this.backgroundColor,";z-index:1;");return o}},getCardStyleForPlaceholder:function(t){if(!t)return{};var e=this.computeColsWidth(0,t.x),n=this.getCardWidth(t.x,t.x+t.w),r=t.y*this.rowHeight,i=t.h*this.rowHeight-this.margin[1];this.setContainerHeight(r,i);var o="transform:translate3d(".concat(e,"px,").concat(r,"px,0);"),a="".concat(o,"width:").concat(n,"px;height:").concat(i,"px;");return a},getCardWidth:function(t,e){var n=this.computeColsWidth(t,e);return e!==this.cols.length&&(n-=this.margin[0]),n},computeColsWidth:function(t,e){var n=t+";"+e;if(this.cacheComputed[n])return this.cacheComputed[n];for(var r=this.cols,i=0,o=t;o0?t.node.x+t.node.w:t.node.x,l=this.getMoveCols(s,u),f=this.getMoveRows(c,t.node.y),h=t.node.x+l,d=t.node.y+f;this.coors.getItemById(o._id).moveTo(h,d);var p=a.x+s,v=a.y+c;t.node["_alt_style"]=this.getCardStyleForRealTime({x:p,y:v,w:a.w,h:a.h}),this.reRenderStyle({ignoreId:t.dragId}),this.dispatchEvent(t.dragId,"move",{x:this.placeholder.x,y:this.placeholder.y,w:this.placeholder.w,h:this.placeholder.h,layout:this.innerLayout})},resizeMove:function(t,e,n,r,i){var o=this.placeholder,a=t.node,s=t.cacheStyle,c=r-e,u=i-n,l=this.getMoveCols(c,a.x+a.w),f=this.getMoveRows(u,a.y+a.h),h=this.getItemLegalSize(a,{w:a.w+l,h:a.h+f});this.coors.getItemById(o._id).resizeTo(h.w,h.h);var d=this.getItemLegalSizeInPixies(a,{width:s.w+c,height:s.h+u});s.x+d.width>this.containerWidth&&(d.width=this.containerWidth-s.x),t.node["_alt_style"]=this.getCardStyleForRealTime({x:s.x,y:s.y,w:d.width,h:d.height}),this.reRenderStyle({ignoreId:t.dragId}),this.dispatchEvent(t.dragId,"resize",{x:this.placeholder.x,y:this.placeholder.y,w:this.placeholder.w,h:this.placeholder.h,layout:this.innerLayout})},getItemLegalSizeInPixies:function(t,e){var n=this.getPixiesLimit(t),r=e.width,i=e.height;return r>n.maxWidth?r=n.maxWidth:rn.maxHeight?i=n.maxHeight:i0&&(e.minWidth=this.getCardWidth(t.x,t.x+n)),r&&r>0&&(e.minHeight=r*this.rowHeight-this.margin[1]),t.maxW&&t.maxW>0&&(e.maxWidth=this.getCardWidth(t.x,t.x+t.maxW)),t.maxH&&t.maxH>0&&(e.maxHeight=t.maxH*this.rowHeight-this.margin[1]),e},getMoveCols:function(t,e){if(e<=0&&t<0)return 0;var n=t<0?"-":"+",r=Math.abs(t);if(r<15)return 0;var i=0,o=e;while(r>0)if("-"===n){if(o--,r-=this.cols[o]||0,i++,o<=0)break}else if(o++,r-=this.cols[o]||0,i++,o>=this.cols.length)break;return parseInt(n+i)},getMoveRows:function(t,e){if(e<=0&&t<0)return 0;var n=t<0?"-":"+",r=Math.abs(t);if(r0)if("-"===n){if(r-=this.rowHeight,i++,o--,o<=0)break}else r-=this.rowHeight,i++,o++;return parseInt(n+i)},addItem:function(t){this.coors||this.setLayout();var e=this.coors.add(t),n=this.getCardStyle(e);return this.$set(e.rawInfo,"_alt_style",n),this.innerLayout.push(e.rawInfo),this.$emit("update:layout",this.innerLayout),e.id},deleteItem:function(t){return this.closeWidget(t)},getAllItems:function(){return this.innerLayout},getItemLegalSize:function(t,e){var n=I(t.minH,this.defVal.minH),r=I(t.minW,this.defVal.minW),i=I(t.maxH,this.defVal.maxH),o=I(t.maxW,this.defVal.maxW),a=e.h,s=e.w;return e.h<=n&&(a=n),e.h>=i&&(a=i),e.w<=r&&(s=r),e.w>=o&&(s=o),{h:a,w:s}},closeWidget:function(t){var e=E(this.innerLayout,t,"_id");if(-1===e)return!1;var n=this.innerLayout[e];this.coors.remove(n._id),this.innerLayout.splice(e,1),this.reRenderStyle(),this.clearDragEnv(),this.$emit("update:layout",this.innerLayout)}},updated:function(){this.$emit("updated")}},ut=ct,lt=(n("d812"),V(ut,p,v,!1,null,null,null)),ft=lt.exports;function ht(t){function e(){var t=this.$options;t.altStore?this.$altStore=t.altStore:t.parent&&t.parent.$altStore&&(this.$altStore=t.parent.$altStore)}t.mixin({beforeCreate:e})}function dt(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var pt=function(){function t(e){j(this,t),this._mutations=Object.create(null),this.initVm(e.state),this.initMutations(e.mutations)}return T(t,[{key:"commit",value:function(t,e){var n=this._mutations[t];n?n.forEach(function(t){t(e)}):console.error("[altStore] unknown commit type.")}},{key:"getOriginState",value:function(){return this._vm._data.$$state}},{key:"initMutations",value:function(t){var e=this,n=this.getOriginState();dt(t,function(t,r){var i=e._mutations[r]||(e._mutations[r]=[]);i.push(function(r){t.call(e,n,r)})})}},{key:"initVm",value:function(t){var e=this._vm;this._vm=new X({data:{$$state:t}}),e&&X.nextTick(function(){return e.$destroy()})}},{key:"state",get:function(){return this._vm._data.$$state},set:function(t){console.error("cannot set state directly.")}}]),t}();function vt(t){X&&t===X||(X=t,ht(X))}var gt={Store:pt,install:vt};function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=d({},ft,{components:{}});return t.altStore&&t.altStore instanceof gt.Store&&(e.altStore=t.altStore),e}var mt={createGrid:yt,grid:ft,altStore:gt};e["default"]=mt},fde4:function(t,e,n){n("bf90");var r=n("584a").Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})["default"]}); //# sourceMappingURL=doesburg.umd.min.js.map