diff --git a/lib/jsframe.min.js b/lib/jsframe.min.js index c596665..7f21678 100644 --- a/lib/jsframe.min.js +++ b/lib/jsframe.min.js @@ -1,8 +1,8 @@ /*! jsframe v1.6.0 Copyright (c) 2007-2020 Tom Misawa */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=10)}([function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function l(e){for(var t=-1,r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4)throw Error("Too many arguments. Number of arguments can be specified 4.");this._checkTypeOfOptions(i);var a=null;i&&i.listenerName&&(a=i.listenerName);var l=null;i&&i.once&&(delete i.once,i.callbackOnce=!0,l=function(n){r(n),o.removeEventListener(e,t,null,i)});var s={listenerName:null,success:!0};l?e.addEventListener(t,l,i):e.addEventListener(t,r,i);var d=this.evTargetListenersMap.get(e);d||(d=new Map,this.evTargetListenersMap.set(e,d));var u=d.get(t);if(u||(u=new Map,d.set(t,u)),null!==a){if(u.has(a))throw Error('The listenerName "'.concat(a,'" is already used for the specified event type ').concat(t));u.set(a,{listener:r,onceListener:l,options:i}),s.listenerName=a}else{var c="listener-".concat(this.listenerNum);i||(i={}),i.listenerName=c,u.set(c,{listener:r,onceListener:l,options:i}),s.listenerName=c,this.listenerNum+=1}return s}},{key:"removeEventListener",value:function(e,t,r,n){if(arguments.length<3)throw Error("Three or four arguments are required.");this._checkTypeOfOptions(n);var o=null;n&&n.listenerName&&(o=n.listenerName);var i={success:!1,message:"unknown error"},a=this.evTargetListenersMap.get(e);if(!a)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have any listeners."),i;var l=a.get(t);if(!l)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listeners.'),i;if(o){var s=l.get(o);if(!s)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listener "').concat(o,'"'),i;l.delete(o),s.options&&s.options.callbackOnce?e.removeEventListener(t,s.onceListener,s.options):e.removeEventListener(t,s.listener,s.options),i.success=!0}else if(!o){if(!r)return i.message="options.listenerName is not found",i;var d="listener",u=r,c=this._searchKeyInValueContent(l,d,u);if(c){var m=l.get(c),p=m.onceListener,h=m.options;l.delete(c),p?e.removeEventListener(t,p,h):e.removeEventListener(t,r,h),i.success=!0}else i.success=!1,i.message="Specified listener could not be deleted from DOM element ".concat(e,"(id=").concat(e.id,").\n Since the specified listener is not registered as an event listener,\n it may have been registered outside of event-listener-helper.")}return i}},{key:"getEventListeners",value:function(e,t){return e?t?this._getEventListenersWith2Args(e,t):this._getEventListenersWith1Arg(e):[]}},{key:"_getEventListenersWith1Arg",value:function(e){var t=[],r=this.evTargetListenersMap.get(e);if(!r)return t;var n,a=i(r);try{for(a.s();!(n=a.n()).done;){var l,s=o(n.value,2),d=s[0],u=s[1],c=[],m=i(u.values());try{for(m.s();!(l=m.n()).done;){var p=l.value;c.push(this._getFrozenListenerDef(p))}}catch(e){m.e(e)}finally{m.f()}c.length>0&&t.push({eventType:d,listeners:c})}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"_getEventListenersWith2Args",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=[],n=this.evTargetListenersMap.get(e);if(!n)return r;var o=n.get(t);if(!o)return r;var a,l=i(o.values());try{for(l.s();!(a=l.n()).done;){var s=a.value,d=this._getFrozenListenerDef(s);r.push(d)}}catch(e){l.e(e)}finally{l.f()}return r}},{key:"getEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return null;var o=n.get(t);if(!o)return null;var i=o.get(r),a=this._getFrozenListenerDef(i);return a}},{key:"hasEventListeners",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=this.evTargetListenersMap.get(e);if(!r)return!1;var n=r.get(t);return!(!n||0===n.size)}},{key:"hasEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return!1;var o=n.get(t);if(!o)return!1;var i=o.get(r);return!!i}},{key:"_getFrozenListenerDef",value:function(e){if(!e)return null;var t={},r=null,n=e.options;return n&&(r={},t.options=r,n.capture&&(r.capture=n.capture),n.callbackOnce&&(r.once=n.callbackOnce),n.listenerName&&(r.listenerName=n.listenerName)),t.listener=e.listener,Object.freeze(r),Object.freeze(t),t}},{key:"clearAllEventListeners",value:function(){var e,t=i(this.getAllEventTargets());try{for(t.s();!(e=t.n()).done;){var r=e.value;this.clearEventListeners(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearEventListeners",value:function(e,t){if(!e)throw Error("At least the EventTarget must be specified as an argument");var r=this.getEventListeners(e,t);if(t){if(t){var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.removeEventListener(e,t,null,a.options)}}catch(e){o.e(e)}finally{o.f()}}}else{var l,s=i(r);try{for(s.s();!(l=s.n()).done;){var d,u=l.value,c=u.eventType,m=i(u.listeners);try{for(m.s();!(d=m.n()).done;){var p=d.value.options;this.removeEventListener(e,c,null,p)}}catch(e){m.e(e)}finally{m.f()}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"clearEventListener",value:function(e,t,r){var n=this.getEventListener(e,t,r);n&&n.options&&this.removeEventListener(e,t,null,n.options)}},{key:"getAllEventTargets",value:function(){return Array.from(this.evTargetListenersMap.keys())}},{key:"searchEventListenersByName",value:function(e){var t,r=[],n=i(this.getAllEventTargets());try{for(n.s();!(t=n.n()).done;){var o,a=t.value,l=this.evTargetListenersMap.get(a),s=i(l.keys());try{for(s.s();!(o=s.n()).done;){var d=o.value,u=l.get(d),c=this._getFrozenListenerDef(u.get(e));c&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"_searchKeyInValueContent",value:function(e,t,r){var n,a=i(e);try{for(a.s();!(n=a.n()).done;){var l=o(n.value,2),s=l[0];if(l[1][t]===r)return s}}catch(e){a.e(e)}finally{a.f()}return null}},{key:"_checkTypeOfOptions",value:function(e){if("object"!==n(e)&&void 0!==e)throw"boolean"==typeof e?new Error("Type of boolean is not accepted as the fourth argument you specify.\n If you want to enable useCapture, specify {capture: true} as the fourth parameter instead."):new Error("Type of ".concat(n(e)," is not accepted as the fourth argument you specify.\n If you want to specify options, specify an object like {capture: true, listenerName:'my-listener-01'}."))}},{key:"_cloneJson",value:function(e){return JSON.parse(JSON.stringify(e))}}])&&s(t.prototype,r),e}()}]).default},function(e,t){e.exports=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superConstructor=t,e.superClass=t.prototype}},function(e,t,r){var n=r(2),o=r(8),i=r(18),a=r(19);function l(){}function s(e,t){var r=t.querySelectorAll("img");t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e);for(var n=0;n',o.appendChild(M)}else 0;return o._handleFocusDrawing(),o},e.exports=l},function(e,t){e.exports=function(){this.size=14,this.width=null,this.height=null,this.borderRadius=2,this.borderWidth=0,this.borderColorDefault="#aaaaaa",this.borderColorFocused=this.borderColorDefault,this.borderColorHovered=null,this.borderColorPressed=this.borderColorDefault,this.borderStyleDefault="solid",this.borderStyleFocused=this.borderStyleDefault,this.borderStyleHovered=null,this.borderStylePressed=this.borderStyleDefault,this.backgroundBoxShadow=null,this.backgroundColorDefault="transparent",this.backgroundColorFocused=this.backgroundColorDefault,this.backgroundColorHovered=null,this.backgroundColorPressed=this.backgroundColorDefault,this.caption=null,this.captionColorDefault="white",this.captionColorFocused=this.captionColorDefault,this.captionColorHovered=null,this.captionColorPressed=this.captionColorDefault,this.captionShiftYpx=0,this.captionFontRatio=1}},function(e,t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}e.exports.objectAssign=function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a=0&&(d.htmlElement.style.borderWidth=s.frameBorderWidthDefault,d.htmlElement.style.borderColor=s.frameBorderColorDefault),parseInt(s.frameBorderRadius,10)>=0&&(d.htmlElement.style.borderRadius=s.frameBorderRadius),d.onCloseFrameListener=null}function b(e,t,r,o,i,a){var l=t,s=r,d=o,c=i,m=a.zindex,p=this;this.jsFrame=null,this.control=null,this.minFrameWidth=128,this.minWindowHeight=32,this.eventListenerHelper=new u,this.overrayTransparentScreenEnabled=!1,this.overrayTransparentScreenOnResize=!0,this.titleBarColorFocused=a.titleBarColorFocused,this.titleBarColorDefault=a.titleBarColorDefault,this.titleBarCaptionColorDefault=a.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=a.titleBarCaptionColorFocused,b.superConstructor.call(p,e,l,s,d,c,m,null,a),p.frameBorderColorDefault=a.frameBorderColorDefault,p.frameBorderColorFocused=a.frameBorderColorFocused,p.frameBorderWidthDefault=a.frameBorderWidthDefault,p.frameBorderWidthFocused=a.frameBorderWidthFocused,p.iframe=null,p.ifDelta=0,p.resizable=!0,p.onMouseMoveOnIframe=null,p.onMouseUpOnIframe=null,p._hasFocus=!1,p._hasFocusTime=0,p.htmlElement.typeName="cifwindow";var h="riversun_"+e;p.dframe=document.createElement("div"),p.iframe=document.createElement("iframe"),p.iframe.name=h,p.iframe.id=h,p.iframe.frameBorder="0",p.iframe.zIndex=-1,p.iframe.allowTransparency="true",p.iframe.width=p.canvasNetWidth-p.ifDelta+0,p.iframe.height=p.canvasNetHeight-p.ifDelta+0,p.showTitleBar=a.showTitleBar,p.getFrameInnerBorderRadius=a.getFrameInnerBorderRadius,p.frameBorderRadius=a.frameBorderRadius,p.adjustFrameBorderRadius(),p.useIframe=!1,p.canvas.canvasElement.appendChild(p.iframe),p.canvas.canvasElement.appendChild(p.dframe),this.setUseIframe=function(e){p.useIframe=e,p.iframe.style.visibility="hidden",p.iframe.style.position="absolute",p.iframe.style.left="0px",p.iframe.style.top="0px",p.iframe.style.width="100%",p.iframe.style.height="100%",p.dframe.style.visibility="hidden",p.dframe.style.position="absolute",p.dframe.style.left="0px",p.dframe.style.boxSizing="content-box",p.dframe.style.top="0px",p.dframe.style.width="100%",p.dframe.style.height="100%",p.dframe.style.backgroundColor="white",e?(p.iframe.style.visibility="visible",p.dframe.style.visibility="hidden"):(p.iframe.style.visibility="hidden",p.dframe.style.visibility="visible")},p.setUseIframe(a.useIframe),(p.overrayTransparentScreenEnabled||p.overrayTransparentScreenOnResize)&&(p.transparence=document.createElement("span"),p.transparence.style.position="absolute",p.transparence.style.left="0px",p.transparence.style.top="0px",p.transparence.style.width="0px",p.transparence.style.height="0px",p.transparence.style.zIndex=4,p.transparence.style.borderWidth="0px",p.transparence.style.borderColor="#ff00ee",p.transparence.style.borderStyle="none",p.transparence.style.cursor="default",p.transparence.style.pointerEvents="none",p.canvas.canvasElement.style.backgroundColor=a.frameBackgroundColor,p.canvas.canvasElement.appendChild(p.transparence)),p.eventEmitter=new n}function g(e,t,r,n,o,i){g.superConstructor.call(this,e,t,r,n,o,i);var a=this;document.addEventListener("click",(function(e){for(var t in a.beanList){a.beanList[t].onBodyClicked(e)}}))}function v(e,t,r,n,o,i,a,l){var s=this;v.superConstructor.call(this,e,t,r,n,o,i,a),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=a,s.htmlElement.isRangeLimited=!1,s.htmlElement.style.borderStyle="none",s.htmlElement.style.zIndex=1,l&&(s.htmlElement.style.background=l),s.getWindowType=function(){return"CMarkerWindow"}}function C(e){var t,r=this,n=null;(r.isWindowManagerFixed=!0,e&&0==e.fixed&&(r.isWindowManagerFixed=!1),e&&e.parentElement&&(n=e.parentElement),r.hAlign="left",r.vAlign="top",e&&e.horizontalAlign&&(r.hAlign=e.horizontalAlign),e&&e.verticalAlign&&(r.vAlign=e.verticalAlign),r.pullToRefresh=!1,e&&"boolean"==typeof e.pullToRefresh&&(r.pullToRefresh=e.pullToRefresh),r.touchActionManipulation=!0,e&&"boolean"==typeof e.touchActionManipulation&&(r.touchActionManipulation=e.touchActionManipulation),n)?r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t);if(document.addEventListener("mouseup",o),document.addEventListener("mousemove",i),"ontouchend"in window){document.addEventListener("touchend",(function(e){o.bind(this)(e)}))}if("ontouchmove"in window){r.touchActionManipulation&&r.doEnableTouchActionManipulation(),r.pullToRefresh||r.doDisablePullToRefresh();document.addEventListener("touchmove",(function(e){e.preventDefault(),i.bind(this)(e)}))}function o(e){r.windowManager.windowMouseUp(e)}function i(e){r.windowManager.windowMouseMove(e)}r.windowManager=new g(n,"windowManager_"+r.generateUUID(),0,0,0,0),r.domPartsBuilder=null}p.CBEAN={},p.CBEAN.HTML_ELEMENT="span",p.CBEAN.HTML_ELEMENT_ID_PREFIX="htmlElement_",p.CBEAN.TYPE_NAME="bean",h.prototype.getWindowType=function(){return"CBeanFrame"},h.prototype.setOnMoveListener=function(e){this.onMoveListener=e},h.prototype._onMove=function(e){this.onMoveListener&&this.onMoveListener(e)},h.prototype.setMovable=function(e){var t=this;return e?(t.htmlElement.argX=1,t.htmlElement.argY=1):(t.htmlElement.argX=0,t.htmlElement.argY=0),t.movable=e,t},h.prototype.setParentCanvas=function(e){return this.parentCanvas=e,this.htmlElement.parentCanvas=this.parentCanvas,this},h.prototype.setOnExternalAreaClickedListener=function(e){return this.externalAreaClickedListener=e,this},h.prototype.onBodyClicked=function(e){var t=this,r=e.pageX,n=e.pageY,o=parseInt(t.htmlElement.style.left),i=parseInt(t.htmlElement.style.top),a=parseInt(t.htmlElement.style.width),l=parseInt(t.htmlElement.style.height);om||d<=0||c>p))h=0,f=0;else{h=parseInt(o,10)-parseInt(a,10),f=parseInt(i,10)-parseInt(l,10),t.currentObject.style.left=parseInt(t.currentObject.style.left)+h*t.currentObject.argX+"px",t.currentObject.style.top=parseInt(t.currentObject.style.top)+f*t.currentObject.argY+"px";var y=t.currentObject.parent;y&&y._onMove&&y._onMove()}return t.eventData.deltaX=h,t.eventData.deltaY=f,t.eventData}return null},f.prototype.mouseUp=function(e){this.currentObject=null,this.mouseDownSource=null},f.prototype.pullUp=function(e){var t=this,r=[],n=t.beanList;for(var o in n)r.push(n[o]);var i=n[e];t.enablePullUp&&t.pullUpSort(i,r,t.baseZIndex),t.onTopObject=i},f.prototype.pullUpSort=function(e,t,r){for(var n in e.htmlElement.style.zIndex=t.length+r,t.sort((function(e,t){return-parseInt(e.htmlElement.style.zIndex,10)+parseInt(t.htmlElement.style.zIndex,10)})),t)t[n].htmlElement.style.zIndex=t.length-1-n+r},f.prototype.removeBean=function(e){var t=this.beanList,r=t[e];this.canvasElement.removeChild(r.htmlElement),delete t[e]},f.prototype.addBean=function(e){var t=this,r=t.beanList,n=t.beanIdName,o=t.beanNameId;r[e.id]=e,e.property.name&&(o[e.property.name]=e.id,n[e.id]=e.property.name);var i=0;for(var a in r)i++;e.htmlElement.style.zIndex=i+t.baseZIndex,e.setParentCanvas(t),this.canvasElement.appendChild(e.htmlElement)},p.CFRAME={},p.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",a(y,h),y.prototype.setTitleBarClassName=function(e,t){return e&&(this.titleBarClassNameDefault=e,this.titleBarClassNameFocused=e),t&&(this.titleBarClassNameFocused=t),this},y.prototype.addFrameComponent=function(e){return this.frameComponentMap[e.id]=e,this.canvas.canvasElement.appendChild(e.htmlElement),this},y.prototype.getFrameComponentElement=function(e){return this.frameComponentMap[e]?this.frameComponentMap[e].htmlElement:null},y.prototype.removeFrameComponentById=function(e){var t=this.frameComponentMap[e];this.canvas.canvasElement.removeChild(t.htmlElement),delete this.frameComponentMap[e]},y.prototype.showFrameComponent=function(e,t){var r=this.getFrameComponentElement(e);return r&&(r.style.display=t||"flex"),this},y.prototype.hideFrameComponent=function(e){var t=this.getFrameComponentElement(e);return t&&(t.style.display="none"),this},y.prototype.hideAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;"none"===r.style.display&&(r._alreadyNone=!0),r.style.display="none"}},y.prototype.showAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;r._alreadyNone?r._alreadyNone=null:r.style.display="flex"}},y.prototype.hideFrameComponentChildMenus=function(e){var t=this.frameComponentMap;for(var r in t)if(t.hasOwnProperty(r)){if(e&&e.exceptFrameComponentId&&r===e.exceptFrameComponentId)continue;var n=t[r];n.childMenu&&(n.childMenu.style.display="none")}},y.prototype.setTitle=function(e){var t=this;if(t.title=e,t.showTitleBar){var r=document.createTextNode(e);t.titleBar.firstChild.replaceChild(r,t.titleBar.firstChild.firstChild)}return t},y.prototype.resize=function(e,t,r,n){var o=this,i=parseInt(o.htmlElement.style.left,10),a=parseInt(o.htmlElement.style.top,10),l=parseInt(o.htmlElement.style.width,10),s=parseInt(o.htmlElement.style.height,10);o.htmlElement.style.left=parseInt(i+e,10)+"px",o.htmlElement.style.top=parseInt(a+t,10)+"px",o.htmlElement.style.width=parseInt(l+r,10)+"px",o.htmlElement.style.height=parseInt(s+n,10)+"px";var d=parseInt(o.canvas.canvasElement.style.width,10),u=parseInt(o.canvas.canvasElement.style.height,10);for(var c in o.canvas.canvasElement.style.width=d+r+"px",o.canvas.canvasElement.style.height=u+n+"px",o.showTitleBar&&(o.titleBar.style.width=d+r+"px"),o.canvas.beanList){var m=o.canvas.beanList[c];"cmarkerwindow"==m.htmlElement.typeName&&("RD"==m.htmlElement.usage?(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"DD"==m.htmlElement.usage?(m.htmlElement.style.width=parseInt(m.htmlElement.style.width,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"RR"==m.htmlElement.usage&&(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.height=parseInt(m.htmlElement.style.height,10)+n+"px"))}},y.prototype.canvasMouseDown=function(e){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},y.prototype.mouseUp=function(e){this.canvas.mouseUp(e)},y.prototype.close=function(e){var t=this.parentObject.parentCanvas,r=this.parentObject,n=r.id;r.closeInternally(e,t,n)},y.prototype.closeFrame=function(e){var t=this.parentCanvas;this.closeInternally(e,t,this.windowId)},y.prototype.closeInternally=function(e,t,r){var n=this;t&&(t.removeBean(r),n.modalBackgroundWindowId&&(t.removeBean(n.modalBackgroundWindowId),n.modalBackgroundWindowId=null),n.onCloseFrameListener&&n.onCloseFrameListener(n))},y.prototype.setOnCloseFrameListener=function(e){this.onCloseFrameListener=e},y.prototype.contextMenu=function(){return!1},y.prototype.setTitleBarTextColor=function(e){this.titleBar.style.color=e},y.prototype.setPosition=function(e,t,r){var n=this.getWidth(),o=this.getHeight();return this._setPositionInternally(e,t,r,n,o),this},y.prototype._setPositionInternally=function(e,t,r,n,i){var a=this;r&&(a.anchor=r),r&&o.LEFT_TOP!=r?o.HCENTER_TOP==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=t+"px"):o.RIGHT_TOP==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=t+"px"):o.LEFT_VCENTER==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.HCENTER_VCENTER==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.RIGHT_VCENTER==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.LEFT_BOTTOM==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i+t+"px"):o.HCENTER_BOTTOM==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i+t+"px"):o.RIGHT_BOTTOM==r&&(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i+t+"px"):(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=t+"px")},y.prototype.getPosition=function(){var e,t,r=this,n=r.getWidth(),i=r.getHeight(),a=r.anchor;return a&&o.LEFT_TOP!=a?o.HCENTER_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)):o.RIGHT_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)):o.LEFT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i/2):o.HCENTER_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i/2):o.RIGHT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i/2):o.LEFT_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i):o.HCENTER_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i):o.RIGHT_BOTTOM==a&&(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i):(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)),{x:e,y:t,anchor:a}},y.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},y.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},y.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},y.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},y.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},y.prototype.setSize=function(e,t,r){var n=!0;return r&&(n=!1),this.resize(0,0,e-this.getWidth(),t-this.getHeight(),n),this},y.prototype.getWindowId=function(){return this.windowId},y.prototype.getName=function(){return this.property.name},y.prototype.setName=function(e){this.property.name=e},a(b,y),b.prototype.getFrameView=function(){return this.dframe},b.prototype.setHTML=function(e){this.dframe.innerHTML=e},b.prototype.$=function(e){return this.useIframe?this.iframe.contentWindow.document.querySelector(e):this.dframe.querySelector(e)},b.prototype.on=function(e,t,r){var n=this,o=n.getFrameComponentElement(e);o&&n.eventListenerHelper.addEventListener(o,t,(function(o){r(n,o,{type:"frameComponent",id:e,eventType:t})}),{listenerName:"frame-component-listener"}),"frame"!==e&&"window"!==e||("move"!==t||n.eventEmitter.hasListenerFuncs("move")||n.setOnMoveListener((function(e){n.eventEmitter.emit("move",n._getCurrentSizePos())})),n.eventEmitter.on(t,r));var i=n.$(e);if(i&&(n.eventListenerHelper.hasEventListener(i,t,"frame-dom-listener")&&n.eventListenerHelper.removeEventListener(i,t,null,{listenerName:"frame-dom-listener"}),n.eventListenerHelper.addEventListener(i,t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}),{listenerName:"frame-dom-listener"})),!i){var a=n.canvas.canvasElement.querySelector(e);a&&a.addEventListener(t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}))}},b.prototype.adjustFrameBorderRadius=function(){var e=this;if(parseInt(e.frameBorderRadius,10)>0){var t=e.getFrameInnerBorderRadius(e,e._hasFocus),r=t.frameAppearance,n=t.innerBorderRadius,o=parseInt(r.titleBarHeight,10);e.showTitleBar?(e.canvas.canvasElement.style.borderBottomRightRadius=n,e.canvas.canvasElement.style.borderBottomLeftRadius=n,e.iframe.style.borderBottomRightRadius=n,e.iframe.style.borderBottomLeftRadius=n,e.titleBar.style.borderTopLeftRadius=n,e.titleBar.style.borderTopRightRadius=n):(e.canvas.canvasElement.style.borderRadius=n,e.iframe.style.borderRadius=n),e.dframe&&(0===o&&(e.dframe.style.borderTopRightRadius||(e.dframe.style.borderTopRightRadius=n),e.dframe.style.borderTopLeftRadius||(e.dframe.style.borderTopLeftRadius=n)),e.dframe.style.borderBottomRightRadius=n,e.dframe.style.borderBottomLeftRadius=n)}},b.prototype.handleReleasingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!1,t.titleBar.className=t.titleBarClassNameDefault,t.titleBarColorDefault&&(t.titleBar.style.background=t.titleBarColorDefault),t.titleBar.style.color=t.titleBarCaptionColorDefault,t.frameBorderColorDefault&&(t.htmlElement.style.borderColor=t.frameBorderColorDefault),t.frameBorderWidthDefault&&(t.htmlElement.style.borderWidth=t.frameBorderWidthDefault,t.adjustFrameBorderRadius()),"cifwindow"==t.htmlElement.typeName&&t.overrayTransparentScreenEnabled&&(t.transparence.style.width=parseInt(t.iframe.width,10)+"px",t.transparence.style.height=parseInt(t.iframe.height,10)+"px"),t.frameComponentMap){t.frameComponentMap[n].handleReleasingFocus()}return t.titleBarBorderBottomDefault&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomDefault),r&&t.eventEmitter.emit("blur",{target:t}),t},b.prototype.handleTakingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!0,t._hasFocus=Date.now(),t.overrayTransparentScreenEnabled&&(t.transparence.style.width="0px",t.transparence.style.height="0px"),t.titleBar.className=t.titleBarClassNameFocused,t.titleBarColorFocused&&(t.titleBar.style.background=t.titleBarColorFocused),t.titleBar.style.color=t.titleBarCaptionColorFocused,t.frameBorderColorFocused&&(t.htmlElement.style.borderColor=t.frameBorderColorFocused),t.frameBorderWidthFocused&&(t.htmlElement.style.borderWidth=t.frameBorderWidthFocused,t.adjustFrameBorderRadius()),t.titleBarBorderBottomFocused&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomFocused),t.frameComponentMap){t.frameComponentMap[n].handleTakingFocus()}return r||t.eventEmitter.emit("focus",{target:t}),t},y.prototype.show=function(e){return this.htmlElement.style.display="flex",e&&0==e.requestFocus||this.requestFocus(),this},y.prototype.showModal=function(e){var t=this,r=new l;r.showTitleBar=!0,r.showCloseButton=!1,r.frameBorderRadius="0px",r.frameBorderStyle="none",r.frameBorderWidthDefault="0px",r.frameBorderWidthFocused="0px",r.frameBoxShadow=null,r.frameBackgroundColor="transparent",r.frameComponents=[],r.frameHeightAdjust=0,r.titleBarHeight="0px",r.titleBarBorderBottomFocused=null,r.titleBarCaptionLeftMargin="0px",r.onInitialize=function(){},r.pullUpDisabled=!0;var n=t.parentCanvas,o=p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX+t.id,i=new b(o,0,0,1,1,r);i.setSize(window.innerWidth,window.innerHeight,!0),i.setResizable(!1),window.addEventListener("resize",(function(){i.setSize(window.innerWidth,window.innerHeight,!0)})),t.modalBackgroundWindowId=o,i.hide(),n.addWindow(i),i.setTitle("").getFrameView().innerHTML='
',i.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",i.show(),t.show(),e&&t.setOnCloseFrameListener(e)},b.prototype.hide=function(){return this.htmlElement.style.display="none",this},b.prototype.onmouseDown=function(e){document.body.ondrag=function(){return!1},this.decorator=y.prototype.onmouseDown,this.decorator(e);var t=this.parent,r=this.parentCanvas;for(var n in r.beanList){var o=r.beanList[n];n==t.getWindowId()||o.handleReleasingFocus()}t.handleTakingFocus()},b.prototype.mouseUp=function(e){(this.overrayTransparentScreenEnabled||this.overrayTransparentScreenOnResize)&&(this.parentCanvas.onTopObject==this?(this.transparence.style.width="0px",this.transparence.style.height="0px"):this.overrayTransparentScreenEnabled&&(this.transparence.style.width=parseInt(this.iframe.width)+"px",this.transparence.style.height=parseInt(this.iframe.height)+"px")),this.decorator=y.prototype.mouseUp,this.decorator(e),document.body.ondrag=null,document.body.onselectstart=null,this.transparence.style.pointerEvents="none"},b.prototype.setMinFrameSize=function(e,t){this.minFrameWidth=e,this.minWindowHeight=t},b.prototype.resize=function(e,t,r,n,o){if(!this.resizable&&o)return null;var i=this.getSize(),a=parseInt(this.htmlElement.style.left,10),l=parseInt(this.htmlElement.style.top,10),s=parseInt(this.htmlElement.style.width,10),d=parseInt(this.htmlElement.style.height,10);o&&s+r'+l+""});s||c.hideFrameComponent("closeButton");var m=window.innerWidth/2;"right"==t.hAlign&&(m=-m),"bottom"==t.vAlign&&(i-=window.innerHeight,a-=window.innerHeight),t.createAnimator().set(c).setDuration(300).fromPosition(m,i,"CENTER_CENTER").toPosition(m,a,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,!1).then((function(e){return e.setDuration(300).fromPosition(m,a,"CENTER_CENTER").toPosition(m,i,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,!1)})).then((function(e){e.get().closeFrame()}))}},Object.freeze(p),e.exports=C},function(e,t,r){var n=r(0),o=r(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-titlebar-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-titlebar-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-modal-window-background {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n widdth: 100%\n}",""]),e.exports=t},function(e,t,r){ +e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=a(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4)throw Error("Too many arguments. Number of arguments can be specified 4.");this._checkTypeOfOptions(i);var a=null;i&&i.listenerName&&(a=i.listenerName);var l=null;i&&i.once&&(delete i.once,i.callbackOnce=!0,l=function(n){r(n),o.removeEventListener(e,t,null,i)});var s={listenerName:null,success:!0};l?e.addEventListener(t,l,i):e.addEventListener(t,r,i);var d=this.evTargetListenersMap.get(e);d||(d=new Map,this.evTargetListenersMap.set(e,d));var u=d.get(t);if(u||(u=new Map,d.set(t,u)),null!==a){if(u.has(a))throw Error('The listenerName "'.concat(a,'" is already used for the specified event type ').concat(t));u.set(a,{listener:r,onceListener:l,options:i}),s.listenerName=a}else{var c="listener-".concat(this.listenerNum);i||(i={}),i.listenerName=c,u.set(c,{listener:r,onceListener:l,options:i}),s.listenerName=c,this.listenerNum+=1}return s}},{key:"removeEventListener",value:function(e,t,r,n){if(arguments.length<3)throw Error("Three or four arguments are required.");this._checkTypeOfOptions(n);var o=null;n&&n.listenerName&&(o=n.listenerName);var i={success:!1,message:"unknown error"},a=this.evTargetListenersMap.get(e);if(!a)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have any listeners."),i;var l=a.get(t);if(!l)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listeners.'),i;if(o){var s=l.get(o);if(!s)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listener "').concat(o,'"'),i;l.delete(o),s.options&&s.options.callbackOnce?e.removeEventListener(t,s.onceListener,s.options):e.removeEventListener(t,s.listener,s.options),i.success=!0}else if(!o){if(!r)return i.message="options.listenerName is not found",i;var d="listener",u=r,c=this._searchKeyInValueContent(l,d,u);if(c){var m=l.get(c),p=m.onceListener,h=m.options;l.delete(c),p?e.removeEventListener(t,p,h):e.removeEventListener(t,r,h),i.success=!0}else i.success=!1,i.message="Specified listener could not be deleted from DOM element ".concat(e,"(id=").concat(e.id,").\n Since the specified listener is not registered as an event listener,\n it may have been registered outside of event-listener-helper.")}return i}},{key:"getEventListeners",value:function(e,t){return e?t?this._getEventListenersWith2Args(e,t):this._getEventListenersWith1Arg(e):[]}},{key:"_getEventListenersWith1Arg",value:function(e){var t=[],r=this.evTargetListenersMap.get(e);if(!r)return t;var n,a=i(r);try{for(a.s();!(n=a.n()).done;){var l,s=o(n.value,2),d=s[0],u=s[1],c=[],m=i(u.values());try{for(m.s();!(l=m.n()).done;){var p=l.value;c.push(this._getFrozenListenerDef(p))}}catch(e){m.e(e)}finally{m.f()}c.length>0&&t.push({eventType:d,listeners:c})}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"_getEventListenersWith2Args",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=[],n=this.evTargetListenersMap.get(e);if(!n)return r;var o=n.get(t);if(!o)return r;var a,l=i(o.values());try{for(l.s();!(a=l.n()).done;){var s=a.value,d=this._getFrozenListenerDef(s);r.push(d)}}catch(e){l.e(e)}finally{l.f()}return r}},{key:"getEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return null;var o=n.get(t);if(!o)return null;var i=o.get(r),a=this._getFrozenListenerDef(i);return a}},{key:"hasEventListeners",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=this.evTargetListenersMap.get(e);if(!r)return!1;var n=r.get(t);return!(!n||0===n.size)}},{key:"hasEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return!1;var o=n.get(t);if(!o)return!1;var i=o.get(r);return!!i}},{key:"_getFrozenListenerDef",value:function(e){if(!e)return null;var t={},r=null,n=e.options;return n&&(r={},t.options=r,n.capture&&(r.capture=n.capture),n.callbackOnce&&(r.once=n.callbackOnce),n.listenerName&&(r.listenerName=n.listenerName)),t.listener=e.listener,Object.freeze(r),Object.freeze(t),t}},{key:"clearAllEventListeners",value:function(){var e,t=i(this.getAllEventTargets());try{for(t.s();!(e=t.n()).done;){var r=e.value;this.clearEventListeners(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearEventListeners",value:function(e,t){if(!e)throw Error("At least the EventTarget must be specified as an argument");var r=this.getEventListeners(e,t);if(t){if(t){var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.removeEventListener(e,t,null,a.options)}}catch(e){o.e(e)}finally{o.f()}}}else{var l,s=i(r);try{for(s.s();!(l=s.n()).done;){var d,u=l.value,c=u.eventType,m=i(u.listeners);try{for(m.s();!(d=m.n()).done;){var p=d.value.options;this.removeEventListener(e,c,null,p)}}catch(e){m.e(e)}finally{m.f()}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"clearEventListener",value:function(e,t,r){var n=this.getEventListener(e,t,r);n&&n.options&&this.removeEventListener(e,t,null,n.options)}},{key:"getAllEventTargets",value:function(){return Array.from(this.evTargetListenersMap.keys())}},{key:"searchEventListenersByName",value:function(e){var t,r=[],n=i(this.getAllEventTargets());try{for(n.s();!(t=n.n()).done;){var o,a=t.value,l=this.evTargetListenersMap.get(a),s=i(l.keys());try{for(s.s();!(o=s.n()).done;){var d=o.value,u=l.get(d),c=this._getFrozenListenerDef(u.get(e));c&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"_searchKeyInValueContent",value:function(e,t,r){var n,a=i(e);try{for(a.s();!(n=a.n()).done;){var l=o(n.value,2),s=l[0];if(l[1][t]===r)return s}}catch(e){a.e(e)}finally{a.f()}return null}},{key:"_checkTypeOfOptions",value:function(e){if("object"!==n(e)&&void 0!==e)throw"boolean"==typeof e?new Error("Type of boolean is not accepted as the fourth argument you specify.\n If you want to enable useCapture, specify {capture: true} as the fourth parameter instead."):new Error("Type of ".concat(n(e)," is not accepted as the fourth argument you specify.\n If you want to specify options, specify an object like {capture: true, listenerName:'my-listener-01'}."))}},{key:"_cloneJson",value:function(e){return JSON.parse(JSON.stringify(e))}}])&&s(t.prototype,r),e}()}]).default},function(e,t){e.exports=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superConstructor=t,e.superClass=t.prototype}},function(e,t,r){var n=r(2),o=r(8),i=r(18),a=r(19);function l(){}function s(e,t){var r=t.querySelectorAll("img");t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e);for(var n=0;n',o.appendChild(M)}else 0;return o._handleFocusDrawing(),o},e.exports=l},function(e,t){e.exports=function(){this.size=14,this.width=null,this.height=null,this.borderRadius=2,this.borderWidth=0,this.borderColorDefault="#aaaaaa",this.borderColorFocused=this.borderColorDefault,this.borderColorHovered=null,this.borderColorPressed=this.borderColorDefault,this.borderStyleDefault="solid",this.borderStyleFocused=this.borderStyleDefault,this.borderStyleHovered=null,this.borderStylePressed=this.borderStyleDefault,this.backgroundBoxShadow=null,this.backgroundColorDefault="transparent",this.backgroundColorFocused=this.backgroundColorDefault,this.backgroundColorHovered=null,this.backgroundColorPressed=this.backgroundColorDefault,this.caption=null,this.captionColorDefault="white",this.captionColorFocused=this.captionColorDefault,this.captionColorHovered=null,this.captionColorPressed=this.captionColorDefault,this.captionShiftYpx=0,this.captionFontRatio=1}},function(e,t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}e.exports.objectAssign=function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a=0&&(d.htmlElement.style.borderWidth=s.frameBorderWidthDefault,d.htmlElement.style.borderColor=s.frameBorderColorDefault),parseInt(s.frameBorderRadius,10)>=0&&(d.htmlElement.style.borderRadius=s.frameBorderRadius),d.onCloseFrameListener=null}function b(e,t,r,o,i,a){var l=t,s=r,d=o,c=i,m=a.zindex,p=this;this.jsFrame=null,this.control=null,this.minFrameWidth=128,this.minWindowHeight=32,this.eventListenerHelper=new u,this.overrayTransparentScreenEnabled=!1,this.overrayTransparentScreenOnResize=!0,this.titleBarColorFocused=a.titleBarColorFocused,this.titleBarColorDefault=a.titleBarColorDefault,this.titleBarCaptionColorDefault=a.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=a.titleBarCaptionColorFocused,b.superConstructor.call(p,e,l,s,d,c,m,null,a),p.frameBorderColorDefault=a.frameBorderColorDefault,p.frameBorderColorFocused=a.frameBorderColorFocused,p.frameBorderWidthDefault=a.frameBorderWidthDefault,p.frameBorderWidthFocused=a.frameBorderWidthFocused,p.iframe=null,p.ifDelta=0,p.resizable=!0,p.onMouseMoveOnIframe=null,p.onMouseUpOnIframe=null,p._hasFocus=!1,p._hasFocusTime=0,p.htmlElement.typeName="cifwindow";var h="riversun_"+e;p.dframe=document.createElement("div"),p.iframe=document.createElement("iframe"),p.iframe.name=h,p.iframe.id=h,p.iframe.frameBorder="0",p.iframe.zIndex=-1,p.iframe.allowTransparency="true",p.iframe.width=p.canvasNetWidth-p.ifDelta+0,p.iframe.height=p.canvasNetHeight-p.ifDelta+0,p.showTitleBar=a.showTitleBar,p.getFrameInnerBorderRadius=a.getFrameInnerBorderRadius,p.frameBorderRadius=a.frameBorderRadius,p.adjustFrameBorderRadius(),p.useIframe=!1,p.canvas.canvasElement.appendChild(p.iframe),p.canvas.canvasElement.appendChild(p.dframe),this.setUseIframe=function(e){p.useIframe=e,p.iframe.style.visibility="hidden",p.iframe.style.position="absolute",p.iframe.style.left="0px",p.iframe.style.top="0px",p.iframe.style.width="100%",p.iframe.style.height="100%",p.dframe.style.visibility="hidden",p.dframe.style.position="absolute",p.dframe.style.left="0px",p.dframe.style.boxSizing="content-box",p.dframe.style.top="0px",p.dframe.style.width="100%",p.dframe.style.height="100%",p.dframe.style.backgroundColor="white",e?(p.iframe.style.visibility="visible",p.dframe.style.visibility="hidden"):(p.iframe.style.visibility="hidden",p.dframe.style.visibility="visible")},p.setUseIframe(a.useIframe),(p.overrayTransparentScreenEnabled||p.overrayTransparentScreenOnResize)&&(p.transparence=document.createElement("span"),p.transparence.style.position="absolute",p.transparence.style.left="0px",p.transparence.style.top="0px",p.transparence.style.width="0px",p.transparence.style.height="0px",p.transparence.style.zIndex=4,p.transparence.style.borderWidth="0px",p.transparence.style.borderColor="#ff00ee",p.transparence.style.borderStyle="none",p.transparence.style.cursor="default",p.transparence.style.pointerEvents="none",p.canvas.canvasElement.style.backgroundColor=a.frameBackgroundColor,p.canvas.canvasElement.appendChild(p.transparence)),p.eventEmitter=new n}function g(e,t,r,n,o,i){g.superConstructor.call(this,e,t,r,n,o,i);var a=this;document.addEventListener("click",(function(e){for(var t in a.beanList){a.beanList[t].onBodyClicked(e)}}))}function v(e,t,r,n,o,i,a,l){var s=this;v.superConstructor.call(this,e,t,r,n,o,i,a),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=a,s.htmlElement.isRangeLimited=!1,s.htmlElement.style.borderStyle="none",s.htmlElement.style.zIndex=1,l&&(s.htmlElement.style.background=l),s.getWindowType=function(){return"CMarkerWindow"}}function C(e){var t,r=this,n=null;(r.isWindowManagerFixed=!0,e&&0==e.fixed&&(r.isWindowManagerFixed=!1),e&&e.parentElement&&(n=e.parentElement),r.hAlign="left",r.vAlign="top",e&&e.horizontalAlign&&(r.hAlign=e.horizontalAlign),e&&e.verticalAlign&&(r.vAlign=e.verticalAlign),r.pullToRefresh=!1,e&&"boolean"==typeof e.pullToRefresh&&(r.pullToRefresh=e.pullToRefresh),r.touchActionManipulation=!0,e&&"boolean"==typeof e.touchActionManipulation&&(r.touchActionManipulation=e.touchActionManipulation),n)?r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t);if(document.addEventListener("mouseup",o),document.addEventListener("mousemove",i),"ontouchend"in window){document.addEventListener("touchend",(function(e){o.bind(this)(e)}))}if("ontouchmove"in window){r.touchActionManipulation&&r.doEnableTouchActionManipulation(),r.pullToRefresh||r.doDisablePullToRefresh();document.addEventListener("touchmove",(function(e){e.preventDefault(),i.bind(this)(e)}))}function o(e){r.windowManager.windowMouseUp(e)}function i(e){r.windowManager.windowMouseMove(e)}r.windowManager=new g(n,"windowManager_"+r.generateUUID(),0,0,0,0),r.domPartsBuilder=null}p.CBEAN={},p.CBEAN.HTML_ELEMENT="span",p.CBEAN.HTML_ELEMENT_ID_PREFIX="htmlElement_",p.CBEAN.TYPE_NAME="bean",h.prototype.getWindowType=function(){return"CBeanFrame"},h.prototype.setOnMoveListener=function(e){this.onMoveListener=e},h.prototype._onMove=function(e){this.onMoveListener&&this.onMoveListener(e)},h.prototype.setMovable=function(e){var t=this;return e?(t.htmlElement.argX=1,t.htmlElement.argY=1):(t.htmlElement.argX=0,t.htmlElement.argY=0),t.movable=e,t},h.prototype.setParentCanvas=function(e){return this.parentCanvas=e,this.htmlElement.parentCanvas=this.parentCanvas,this},h.prototype.setOnExternalAreaClickedListener=function(e){return this.externalAreaClickedListener=e,this},h.prototype.onBodyClicked=function(e){var t=this,r=e.pageX,n=e.pageY,o=parseInt(t.htmlElement.style.left),i=parseInt(t.htmlElement.style.top),a=parseInt(t.htmlElement.style.width),l=parseInt(t.htmlElement.style.height);om||d<=0||c>p))h=0,f=0;else{h=parseInt(o,10)-parseInt(a,10),f=parseInt(i,10)-parseInt(l,10),t.currentObject.style.left=parseInt(t.currentObject.style.left)+h*t.currentObject.argX+"px",t.currentObject.style.top=parseInt(t.currentObject.style.top)+f*t.currentObject.argY+"px";var y=t.currentObject.parent;y&&y._onMove&&y._onMove()}return t.eventData.deltaX=h,t.eventData.deltaY=f,t.eventData}return null},f.prototype.mouseUp=function(e){this.currentObject=null,this.mouseDownSource=null},f.prototype.pullUp=function(e){var t=this,r=[],n=t.beanList;for(var o in n)r.push(n[o]);var i=n[e];t.enablePullUp&&t.pullUpSort(i,r,t.baseZIndex),t.onTopObject=i},f.prototype.pullUpSort=function(e,t,r){for(var n in e.htmlElement.style.zIndex=t.length+r,t.sort((function(e,t){return-parseInt(e.htmlElement.style.zIndex,10)+parseInt(t.htmlElement.style.zIndex,10)})),t)t[n].htmlElement.style.zIndex=t.length-1-n+r},f.prototype.removeBean=function(e){var t=this.beanList,r=t[e];this.canvasElement.removeChild(r.htmlElement),delete t[e]},f.prototype.addBean=function(e){var t=this,r=t.beanList,n=t.beanIdName,o=t.beanNameId;r[e.id]=e,e.property.name&&(o[e.property.name]=e.id,n[e.id]=e.property.name);var i=0;for(var a in r)i++;e.htmlElement.style.zIndex=i+t.baseZIndex,e.setParentCanvas(t),this.canvasElement.appendChild(e.htmlElement)},p.CFRAME={},p.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",a(y,h),y.prototype.setTitleBarClassName=function(e,t){return e&&(this.titleBarClassNameDefault=e,this.titleBarClassNameFocused=e),t&&(this.titleBarClassNameFocused=t),this},y.prototype.addFrameComponent=function(e){return this.frameComponentMap[e.id]=e,this.canvas.canvasElement.appendChild(e.htmlElement),this},y.prototype.getFrameComponentElement=function(e){return this.frameComponentMap[e]?this.frameComponentMap[e].htmlElement:null},y.prototype.removeFrameComponentById=function(e){var t=this.frameComponentMap[e];this.canvas.canvasElement.removeChild(t.htmlElement),delete this.frameComponentMap[e]},y.prototype.showFrameComponent=function(e,t){var r=this.getFrameComponentElement(e);return r&&(r.style.display=t||"flex"),this},y.prototype.hideFrameComponent=function(e){var t=this.getFrameComponentElement(e);return t&&(t.style.display="none"),this},y.prototype.hideAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;"none"===r.style.display&&(r._alreadyNone=!0),r.style.display="none"}},y.prototype.showAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;r._alreadyNone?r._alreadyNone=null:r.style.display="flex"}},y.prototype.hideFrameComponentChildMenus=function(e){var t=this.frameComponentMap;for(var r in t)if(t.hasOwnProperty(r)){if(e&&e.exceptFrameComponentId&&r===e.exceptFrameComponentId)continue;var n=t[r];n.childMenu&&(n.childMenu.style.display="none")}},y.prototype.setTitle=function(e){var t=this;if(t.title=e,t.showTitleBar){var r=document.createTextNode(e);t.titleBar.firstChild.replaceChild(r,t.titleBar.firstChild.firstChild)}return t},y.prototype.resize=function(e,t,r,n){var o=this,i=parseInt(o.htmlElement.style.left,10),a=parseInt(o.htmlElement.style.top,10),l=parseInt(o.htmlElement.style.width,10),s=parseInt(o.htmlElement.style.height,10);o.htmlElement.style.left=parseInt(i+e,10)+"px",o.htmlElement.style.top=parseInt(a+t,10)+"px",o.htmlElement.style.width=parseInt(l+r,10)+"px",o.htmlElement.style.height=parseInt(s+n,10)+"px";var d=parseInt(o.canvas.canvasElement.style.width,10),u=parseInt(o.canvas.canvasElement.style.height,10);for(var c in o.canvas.canvasElement.style.width=d+r+"px",o.canvas.canvasElement.style.height=u+n+"px",o.showTitleBar&&(o.titleBar.style.width=d+r+"px"),o.canvas.beanList){var m=o.canvas.beanList[c];"cmarkerwindow"==m.htmlElement.typeName&&("RD"==m.htmlElement.usage?(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"DD"==m.htmlElement.usage?(m.htmlElement.style.width=parseInt(m.htmlElement.style.width,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"RR"==m.htmlElement.usage&&(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.height=parseInt(m.htmlElement.style.height,10)+n+"px"))}},y.prototype.canvasMouseDown=function(e){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},y.prototype.mouseUp=function(e){this.canvas.mouseUp(e)},y.prototype.close=function(e){var t=this.parentObject.parentCanvas,r=this.parentObject,n=r.id;r.closeInternally(e,t,n)},y.prototype.closeFrame=function(e){var t=this.parentCanvas;this.closeInternally(e,t,this.windowId)},y.prototype.closeInternally=function(e,t,r){var n=this;t&&(t.removeBean(r),n.modalBackgroundWindowId&&(t.removeBean(n.modalBackgroundWindowId),n.modalBackgroundWindowId=null),n.onCloseFrameListener&&n.onCloseFrameListener(n))},y.prototype.setOnCloseFrameListener=function(e){this.onCloseFrameListener=e},y.prototype.contextMenu=function(){return!1},y.prototype.setTitleBarTextColor=function(e){this.titleBar.style.color=e},y.prototype.setPosition=function(e,t,r){var n=this.getWidth(),o=this.getHeight();return this._setPositionInternally(e,t,r,n,o),this},y.prototype._setPositionInternally=function(e,t,r,n,i){var a=this;r&&(a.anchor=r),r&&o.LEFT_TOP!=r?o.HCENTER_TOP==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=t+"px"):o.RIGHT_TOP==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=t+"px"):o.LEFT_VCENTER==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.HCENTER_VCENTER==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.RIGHT_VCENTER==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.LEFT_BOTTOM==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i+t+"px"):o.HCENTER_BOTTOM==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i+t+"px"):o.RIGHT_BOTTOM==r&&(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i+t+"px"):(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=t+"px")},y.prototype.getPosition=function(){var e,t,r=this,n=r.getWidth(),i=r.getHeight(),a=r.anchor;return a&&o.LEFT_TOP!=a?o.HCENTER_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)):o.RIGHT_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)):o.LEFT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i/2):o.HCENTER_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i/2):o.RIGHT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i/2):o.LEFT_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i):o.HCENTER_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i):o.RIGHT_BOTTOM==a&&(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i):(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)),{x:e,y:t,anchor:a}},y.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},y.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},y.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},y.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},y.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},y.prototype.setSize=function(e,t,r){var n=!0;return r&&(n=!1),this.resize(0,0,e-this.getWidth(),t-this.getHeight(),n),this},y.prototype.getWindowId=function(){return this.windowId},y.prototype.getName=function(){return this.property.name},y.prototype.setName=function(e){this.property.name=e},a(b,y),b.prototype.getFrameView=function(){return this.dframe},b.prototype.setHTML=function(e){this.dframe.innerHTML=e},b.prototype.$=function(e){return this.useIframe?this.iframe.contentWindow.document.querySelector(e):this.dframe.querySelector(e)},b.prototype.on=function(e,t,r){var n=this,o=n.getFrameComponentElement(e);o&&n.eventListenerHelper.addEventListener(o,t,(function(o){r(n,o,{type:"frameComponent",id:e,eventType:t})}),{listenerName:"frame-component-listener"}),"frame"!==e&&"window"!==e||("move"!==t||n.eventEmitter.hasListenerFuncs("move")||n.setOnMoveListener((function(e){n.eventEmitter.emit("move",n._getCurrentSizePos())})),n.eventEmitter.on(t,r));var i=n.$(e);if(i&&(n.eventListenerHelper.hasEventListener(i,t,"frame-dom-listener")&&n.eventListenerHelper.removeEventListener(i,t,null,{listenerName:"frame-dom-listener"}),n.eventListenerHelper.addEventListener(i,t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}),{listenerName:"frame-dom-listener"})),!i){var a=n.canvas.canvasElement.querySelector(e);a&&a.addEventListener(t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}))}},b.prototype.adjustFrameBorderRadius=function(){var e=this;if(parseInt(e.frameBorderRadius,10)>0){var t=e.getFrameInnerBorderRadius(e,e._hasFocus),r=t.frameAppearance,n=t.innerBorderRadius,o=parseInt(r.titleBarHeight,10);e.showTitleBar?(e.canvas.canvasElement.style.borderBottomRightRadius=n,e.canvas.canvasElement.style.borderBottomLeftRadius=n,e.iframe.style.borderBottomRightRadius=n,e.iframe.style.borderBottomLeftRadius=n,e.titleBar.style.borderTopLeftRadius=n,e.titleBar.style.borderTopRightRadius=n):(e.canvas.canvasElement.style.borderRadius=n,e.iframe.style.borderRadius=n),e.dframe&&(0===o&&(e.dframe.style.borderTopRightRadius||(e.dframe.style.borderTopRightRadius=n),e.dframe.style.borderTopLeftRadius||(e.dframe.style.borderTopLeftRadius=n)),e.dframe.style.borderBottomRightRadius=n,e.dframe.style.borderBottomLeftRadius=n)}},b.prototype.handleReleasingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!1,t.titleBar.className=t.titleBarClassNameDefault,t.titleBarColorDefault&&(t.titleBar.style.background=t.titleBarColorDefault),t.titleBar.style.color=t.titleBarCaptionColorDefault,t.frameBorderColorDefault&&(t.htmlElement.style.borderColor=t.frameBorderColorDefault),t.frameBorderWidthDefault&&(t.htmlElement.style.borderWidth=t.frameBorderWidthDefault,t.adjustFrameBorderRadius()),"cifwindow"==t.htmlElement.typeName&&t.overrayTransparentScreenEnabled&&(t.transparence.style.width=parseInt(t.iframe.width,10)+"px",t.transparence.style.height=parseInt(t.iframe.height,10)+"px"),t.frameComponentMap){t.frameComponentMap[n].handleReleasingFocus()}return t.titleBarBorderBottomDefault&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomDefault),r&&t.eventEmitter.emit("blur",{target:t}),t},b.prototype.handleTakingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!0,t._hasFocus=Date.now(),t.overrayTransparentScreenEnabled&&(t.transparence.style.width="0px",t.transparence.style.height="0px"),t.titleBar.className=t.titleBarClassNameFocused,t.titleBarColorFocused&&(t.titleBar.style.background=t.titleBarColorFocused),t.titleBar.style.color=t.titleBarCaptionColorFocused,t.frameBorderColorFocused&&(t.htmlElement.style.borderColor=t.frameBorderColorFocused),t.frameBorderWidthFocused&&(t.htmlElement.style.borderWidth=t.frameBorderWidthFocused,t.adjustFrameBorderRadius()),t.titleBarBorderBottomFocused&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomFocused),t.frameComponentMap){t.frameComponentMap[n].handleTakingFocus()}return r||t.eventEmitter.emit("focus",{target:t}),t},y.prototype.show=function(e){return this.htmlElement.style.display="flex",e&&0==e.requestFocus||this.requestFocus(),this},y.prototype.showModal=function(e){var t=this,r=new l;r.showTitleBar=!0,r.showCloseButton=!1,r.frameBorderRadius="0px",r.frameBorderStyle="none",r.frameBorderWidthDefault="0px",r.frameBorderWidthFocused="0px",r.frameBoxShadow=null,r.frameBackgroundColor="transparent",r.frameComponents=[],r.frameHeightAdjust=0,r.titleBarHeight="0px",r.titleBarBorderBottomFocused=null,r.titleBarCaptionLeftMargin="0px",r.onInitialize=function(){},r.pullUpDisabled=!0;var n=t.parentCanvas,o=p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX+t.id,i=new b(o,0,0,1,1,r);i.setSize(window.innerWidth,window.innerHeight,!0),i.setResizable(!1),window.addEventListener("resize",(function(){i.setSize(window.innerWidth,window.innerHeight,!0)})),t.modalBackgroundWindowId=o,i.hide(),n.addWindow(i),i.setTitle("").getFrameView().innerHTML='
',i.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",i.show(),t.show(),e&&t.setOnCloseFrameListener(e)},b.prototype.hide=function(){return this.htmlElement.style.display="none",this},b.prototype.onmouseDown=function(e){document.body.ondrag=function(){return!1},this.decorator=y.prototype.onmouseDown,this.decorator(e);var t=this.parent,r=this.parentCanvas;for(var n in r.beanList){var o=r.beanList[n];n==t.getWindowId()||o.handleReleasingFocus()}t.handleTakingFocus()},b.prototype.mouseUp=function(e){(this.overrayTransparentScreenEnabled||this.overrayTransparentScreenOnResize)&&(this.parentCanvas.onTopObject==this?(this.transparence.style.width="0px",this.transparence.style.height="0px"):this.overrayTransparentScreenEnabled&&(this.transparence.style.width=parseInt(this.iframe.width)+"px",this.transparence.style.height=parseInt(this.iframe.height)+"px")),this.decorator=y.prototype.mouseUp,this.decorator(e),document.body.ondrag=null,document.body.onselectstart=null,this.transparence.style.pointerEvents="none"},b.prototype.setMinFrameSize=function(e,t){this.minFrameWidth=e,this.minWindowHeight=t},b.prototype.resize=function(e,t,r,n,o){if(!this.resizable&&o)return null;var i=this.getSize(),a=parseInt(this.htmlElement.style.left,10),l=parseInt(this.htmlElement.style.top,10),s=parseInt(this.htmlElement.style.width,10),d=parseInt(this.htmlElement.style.height,10);o&&s+r'+l+""});s||c.hideFrameComponent("closeButton");var m=window.innerWidth/2;"right"==t.hAlign&&(m=-m),"bottom"==t.vAlign&&(i-=window.innerHeight,a-=window.innerHeight),t.createAnimator().set(c).setDuration(300).fromPosition(m,i,"CENTER_CENTER").toPosition(m,a,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,!1).then((function(e){return e.setDuration(300).fromPosition(m,a,"CENTER_CENTER").toPosition(m,i,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,!1)})).then((function(e){e.get().closeFrame()}))}},Object.freeze(p),e.exports=C},function(e,t,r){var n=r(0),o=r(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-titlebar-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-titlebar-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-modal-window-background {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n widdth: 100%\n}",""]),e.exports=t},function(e,t,r){ /*! event-emitter(https://github.com/riversun/event-emitter) v1.2.1 Copyright (c) 2020 riversun.org@gmail.com */ -e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}},{key:"addListenerFunc",value:function(e){this.listenerFuncs.push(e)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncs);try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}(),u=function(){function e(){i(this,e),this.listenerFuncMap=new Map}return l(e,[{key:"clearAll",value:function(){this.listenerFuncMap.clear()}},{key:"hasListenerFunc",value:function(e){return this.listenerFuncMap.has(e)}},{key:"putListenerFunc",value:function(e,t){this.listenerFuncMap.set(e,t)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncMap.values());try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}()}]).default},function(e,t,r){"use strict";var n=r(4),o=r(3),i=r(2),a=r(5);function l(e){this.eventListenerHelper=new a,this.windowMode="default",this.styleDisplay="flex",this.horizontalAlign="left",this.verticalAlign="top",this.keyListener=null,this.minimizeButton=null,this.maximizeButton=null,this.demaximizeButton=null,this.deminimizeButton=null,this.opts=e,this.isWindowManagerFixed=e.frame.jsFrame.isWindowManagerFixed,e.styleDisplay&&(this.styleDisplay=e.styleDisplay),e.minimizeButton&&(this.minimizeButton=e.minimizeButton),e.deminimizeButton&&(this.deminimizeButton=e.deminimizeButton),e.maximizeButton&&(this.maximizeButton=e.maximizeButton),e.demaximizeButton&&(this.demaximizeButton=e.demaximizeButton),e.hideButton&&(this.hideButton=e.hideButton),this.maximizeParam=e.maximizeParam,this.demaximizeParam=e.demaximizeParam,this.minimizeParam=e.minimizeParam,this.deminimizeParam=e.deminimizeParam,this.hideParam=e.hideParam,this.dehideParam=e.dehideParam,e.horizontalAlign&&(this.horizontalAlign=e.horizontalAlign),e.verticalAlign&&(this.verticalAlign=e.verticalAlign),this.animationEnabled=!1,this.animationDuration=100,this.frame=e.frame,this.hideFrameBorder=!0,this.hideTitleBar=!0,this.restoreKey=null,this.restoreDuration=null,this.restoreCallback=null,this.statsStore={},e.animation&&(this.animationEnabled=e.animation),e.animationDuration&&(this.animationDuration=e.animationDuration),this.eventListeners={},this.resizeListener=this.handleOnResize.bind(this)}l.prototype.on=function(e,t){this.eventListeners[e]=t},l.prototype.doMaximize=function(e){var t=this;if("hid"===t.windowMode)throw Error("[JSrame] It is not possible to change directly from the hid state to the maximized state");if("maximized"!==t.windowMode&&"maximizing"!==t.windowMode){t.windowMode="maximizing";var r=t.frame;t.eventListenerHelper.hasEventListener(window,"resize","window-resize-listener")||t.eventListenerHelper.addEventListener(window,"resize",t.resizeListener,{listenerName:"window-resize-listener"}),t.saveCurrentWindowStats("maximize_mode"),t.hideTitleBar=!!e&&e.fullScreen,t.hideTitleBar?r.hideAllVisibleFrameComponents():(t.maximizeButton&&r.hideFrameComponent(t.maximizeButton),t.demaximizeButton&&r.showFrameComponent(t.demaximizeButton,t.styleDisplay)),r.setMovable(!1),r.setResizable(!1),e&&e.restoreKey&&(t.restoreKey=e.restoreKey),e&&e.restoreDuration&&(t.restoreDuration=e.restoreDuration),e&&e.restoreCallback&&(t.restoreCallback=e.restoreCallback),t.renderMaximizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null})}},l.prototype.renderMaximizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("maximize_mode"),o=0,i=0,a=0,l=0;t.hideTitleBar&&(o=0,i=-n.titleBarHeight),t.hideFrameBorder?(a=window.innerWidth,l=window.innerHeight+(t.hideTitleBar?n.titleBarHeight:0)):(a=window.innerWidth-2*n.frameBorderWidthDefault,l=window.innerHeight-2*n.frameBorderWidthDefault+(t.hideTitleBar?n.titleBarHeight:0)),"right"==t.horizontalAlign&&(o=-a),"bottom"==t.verticalAlign&&(i=-l);var s=function(n){var s=n&&n.disableCallback;r.setPosition(o,i),t.hideFrameBorder&&(r.frameBorderWidthDefault=0,r.frameBorderWidthFocused=0,r.htmlElement.style.borderWidth="0px"),r.setSize(a,l,!0),s||(t.hideTitleBar&&(t.restoreKey&&(t.keyListener=function(e){e.code===t.restoreKey&&t.doCommand("restore")}),window.addEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.addEventListener("keydown",t.keyListener)),t.windowMode="maximized",e&&e.callback&&e.callback(t.frame,{eventType:"maximized"}),t.eventListeners.maximized&&t.eventListeners.maximized(t.frame,{eventType:"maximized"}))};e&&e.animation?t.animateFrame({frame:r,from:n,to:{left:o,top:i,width:a,height:l},duration:e.duration?e.duration:t.animationDuration,callback:s}):e&&"handleOnResize"===e.caller?s({disableCallback:!0}):s()},l.prototype.doDemaximize=function(e){var t=this,r=t.frame;if("hid"===t.windowMode)throw Error("[JSFrame] demaximize(=recovery from maximized) cannot be performed in hid state.");t.hasWindowStats("maximize_mode")&&(t.hideTitleBar||(t.maximizeButton&&r.showFrameComponent(t.maximizeButton,t.styleDisplay),t.demaximizeButton&&r.hideFrameComponent(t.demaximizeButton)),t.restoreWindow({restorePosition:!0,restoreMode:"maximize_mode",animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,forceShowFrameComponents:t.animationEnabled&&t.hideTitleBar,duration:e&&e.duration?e.duration:null,eventType:"demaximized"}))},l.prototype.handleOnResize=function(){this.renderMaximizedMode({caller:"handleOnResize"})},l.prototype.doMinimize=function(e){var t=this;if("minimized"!==t.windowMode&&"minimizing"!==t.windowMode){t.windowMode="minimizing";var r=t.frame;t.saveCurrentWindowStats("minimize_mode"),r.setResizable(!1),t.renderMinimizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null,toWidth:e&&e.toWidth?e.toWidth:null})}},l.prototype.renderMinimizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("minimize_mode"),o=t.getCurrentWindowStats(),i=t.getCurrentWindowStats();i.height=n.titleBarHeight,e&&e.toWidth&&(i.width=e.toWidth);var a=function(){r.setSize(i.width,i.height,!0),t.windowMode="minimized",t.minimizeButton&&r.hideFrameComponent(t.minimizeButton),t.deminimizeButton&&r.showFrameComponent(t.deminimizeButton,t.styleDisplay),e.callback&&e.callback(t.frame,{eventType:"minimized"}),t.eventListeners.minimized&&t.eventListeners.minimized(t.frame,{eventType:"minimized"})};e&&e.animation?t.animateFrame({toAlpha:1,duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:i,callback:a}):a()},l.prototype.doDeminimize=function(e){var t=this,r=t.frame;t.hasWindowStats("minimize_mode")&&(t.minimizeButton&&r.showFrameComponent(t.minimizeButton,t.styleDisplay),t.deminimizeButton&&r.hideFrameComponent(t.deminimizeButton),t.restoreWindow({restorePosition:!1,restoreMode:"minimize_mode",animation:t.animationEnabled,duration:e&&e.duration?e.duration:null,callback:e&&e.callback?e.callback:null,eventType:"deminimized"}))},l.prototype.doHide=function(e){var t=this;if("hid"!==t.windowMode&&"hiding"!==t.windowMode){t.windowMode="hiding";var r=t.frame;t.saveCurrentWindowStats("hide_mode"),r.setResizable(!1);var n={animation:t.animationEnabled};e&&i({op:"overwrite-merge",object1:n,object2:e}),t.renderHideMode(n)}},l.prototype.renderHideMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("hide_mode"),i=t.getCurrentWindowStats(),a={x:0,y:0},l=e.toElement;e.offset&&(a=e.offset);var s=0,d=0,u=e&&e.align?e.align:"LEFT_TOP";if(u&&o.LEFT_TOP!=u){if(o.HCENTER_TOP==u)s=i.left+i.width/2,d=i.top;else if(o.RIGHT_TOP==u)s=i.left+i.width,d=i.top;else if(o.LEFT_VCENTER==u)s=i.left,d=i.top+i.height/2;else if(o.HCENTER_VCENTER==u)s=i.left+i.width/2,d=i.top+i.height/2;else if(o.RIGHT_VCENTER==u)s=i.left+i.width,d=i.top+i.height/2;else if(o.LEFT_BOTTOM==u)s=i.left,d=i.top+i.height;else if(o.HCENTER_BOTTOM==u)s=i.left+i.width/2,d=i.top+i.height;else if(o.RIGHT_BOTTOM==u)s=i.left+i.width,d=i.top+i.height;else if("ABSOLUTE"==u)if(l){var c=l.getBoundingClientRect();t.isWindowManagerFixed?(s=c.left,d=c.top):(s=c.left+window.pageXOffset,d=c.top+window.pageYOffset)}else s=a.x,d=a.y}else s=i.left,d=i.top;var m={left:s,top:d,width:0,height:n.titleBarHeight},p=function(){r.setSize(m.width,m.height,!0),t.windowMode="hid",e&&e.callback&&e.callback(t.frame,{eventType:"hid"}),t.eventListeners.hid&&t.eventListeners.hid(t.frame,{eventType:"hid"})};r.hideAllVisibleFrameComponents(),e&&e.animation?t.animateFrame({fromAlpha:e.silent?0:1,toAlpha:0,duration:e.duration?e.duration:t.animationDuration,frame:r,from:i,to:m,callback:p}):p()},l.prototype.doDehide=function(e){this.frame;this.hasWindowStats("hide_mode")&&this.restoreWindow({duration:e&&e.duration?e.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:this.animationEnabled,forceShowFrameComponents:!0,callback:e&&e.callback?e.callback:null,eventType:"dehided"})},l.prototype.loadWindowStats=function(e){return this.statsStore[e]},l.prototype.saveCurrentWindowStats=function(e){var t=this,r=t.getCurrentWindowStats();if(t.hasWindowStats(e)){var n=t.loadWindowStats(e),o=!t.windowStatsEquals(r,n);return o&&(t.statsStore[e]=r),o}return t.statsStore[e]=r,!0},l.prototype.windowStatsEquals=function(e,t){return!(!e||!t)&&JSON.stringify(e)===JSON.stringify(t)},l.prototype.clearWindowStats=function(e){this.statsStore[e]=null},l.prototype.hasWindowStats=function(e){return this.statsStore[e]},l.prototype.getCurrentWindowStats=function(){var e=this.frame,t=parseInt(e.titleBar.style.height,10),r=e.frameBorderWidthDefault,n=e.frameBorderWidthFocused;return{left:e.getLeft(),top:e.getTop(),width:e.getWidth(),height:e.getHeight(),titleBarHeight:t,frameBorderWidthDefault:r,frameBorderWidthFocused:n,resizable:e.resizable,movable:e.movable}},l.prototype.restoreWindow=function(e){var t=this,r=t.frame,n=t.loadWindowStats(e.restoreMode),o=t.getCurrentWindowStats();r.frameBorderWidthDefault=n.frameBorderWidthDefault,r.frameBorderWidthFocused=n.frameBorderWidthFocused,r.htmlElement.style.borderWidth=r.frameBorderWidthFocused;var i=function(){e&&0==e.restorePosition&&(n.left=o.left,n.top=o.top),r.setPosition(n.left,n.top);r.setSize(n.width,n.height,!0),r.setResizable(n.resizable),r.setMovable(n.movable),t.clearWindowStats(e.restoreMode),t.keyListener&&(window.removeEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.removeEventListener("keydown",t.keyListener),t.keyListener=null),t.windowMode="default",e&&e.forceShowFrameComponents&&r.showAllVisibleFrameComponents(),r.show();var i="restored";e&&e.eventType&&(i=e.eventType),e&&e.callback&&e.callback(t.frame,{eventType:i}),t.eventListeners[i]&&t.eventListeners[i](t.frame,{eventType:i})};e&&e.animation?t.animateFrame({duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:n,callback:i}):i(),t.eventListenerHelper.removeEventListener(window,"resize",t.resizeListener)},l.prototype.animateFrame=function(e){var t=isNaN(e.fromAlpha)?1:e.fromAlpha,r=e.from,o=e.to;(new n).set(e.frame).setDuration(e.duration?e.duration:this.animationDuration).fromPosition(r.left,r.top,"LEFT_TOP").toPosition(o.left,o.top,"LEFT_TOP").fromWidth(r.width).fromHeight(r.height).toWidth(o.width).toHeight(o.height).fromAlpha(t).toAlpha(0==e.toAlpha?0:1).start(0,!1).then((function(t){e.callback()}))},l.prototype.doCommand=function(e,t){var r=this;"maximize"===e&&r._defaultFunctionMaximize(r.frame),"demaximize"===e&&r._defaultFunctionDemaximize(r.frame),"restore"===e&&r._defaultFunctionRestoreFromFullscreen(r.frame),"minimize"===e&&r._defaultFunctionMinimize(r.frame),"deminimize"===e&&r._defaultFunctionDeminimize(r.frame),"hide"===e&&r._defaultFunctionHide(r.frame),"dehide"===e&&r._defaultFunctionDehide(r.frame)},l.prototype._defaultFunctionMaximize=function(e,t){var r=this.opts,n={fullScreen:!0===r.maximizeWithoutTitleBar,restoreKey:r.restoreKey?r.restoreKey:"Escape",restoreDuration:r.restoreDuration};this.maximizeParam&&i({op:"overwrite-merge",object1:n,object2:this.maximizeParam}),e.control.doMaximize(n)},l.prototype._defaultFunctionDemaximize=function(e,t){e.control.doDemaximize({})},l.prototype._defaultFunctionRestoreFromFullscreen=function(e,t){e.control.doDemaximize({duration:this.restoreDuration?this.restoreDuration:null,callback:this.restoreCallback?this.restoreCallback:null})},l.prototype._defaultFunctionMinimize=function(e,t){e.control.doMinimize(this.minimizeParam)},l.prototype._defaultFunctionDeminimize=function(e,t){e.control.doDeminimize(this.deminimizeParam)},l.prototype._defaultFunctionHide=function(e,t){var r={align:"CENTER_BOTTOM"};this.hideParam&&(r=this.hideParam),e.control.doHide(r)},l.prototype._defaultFunctionDehide=function(e,t){e.control.doDehide(this.dehideParam)},l.prototype.setupDefaultEvents=function(){var e=this;e.maximizeButton&&e.frame.on(e.maximizeButton,"click",e._defaultFunctionMaximize.bind(e)),e.demaximizeButton&&e.frame.on(e.demaximizeButton,"click",e._defaultFunctionDemaximize.bind(e)),e.minimizeButton&&e.frame.on(e.minimizeButton,"click",e._defaultFunctionMinimize.bind(e)),e.deminimizeButton&&e.frame.on(e.deminimizeButton,"click",e._defaultFunctionDeminimize.bind(e)),e.hideButton&&e.frame.on(e.hideButton,"click",e._defaultFunctionHide.bind(e))},e.exports=l},function(e,t){var r=function(){function e(){var e=this;e._timerId=null,e._isRunning=!1,e._timerInterval=0,e._internalCallback=function(){e._timerMethod&&e._timerMethod(e);e._isRunning&&(clearTimeout(e._timerId),e._timerId=setTimeout(e._internalCallback,e._timerInterval))},e._timerMethod=null}return e.prototype.setCallback=function(e){return this._timerMethod=e,this},e.prototype.setIntervalMillis=function(e){return this._timerInterval=e,this},e.prototype.stopTimer=function(){return this._isRunning=!1,this},e.prototype.startTimer=function(){var e=this;return e._timerInterval>0&&(e._timerId=setTimeout(e._internalCallback,e._timerInterval),e._isRunning=!0),e},e}();e.exports=r},function(e,t,r){var n=r(7),o=r(20);function i(){var e=this;this.showTitleBar=!0,this.showCloseButton=!0,this.titleBarCaption="",this.titleBarCaptionFontSize="12px",this.titleBarCaptionFontWeight="bold",this.titleBarHeight="24px",this.useIframe=!1,this.useFrame=!0,this.titleBarClassNameDefault=null,this.titleBarClassNameFocused=null,this.setUseIFrame=function(t){return e.useIframe=t,e.useFrame=!t,e},this.titleBarCaptionLeftMargin="5px",this.titleBarColorDefault=null,this.titleBarColorFocused=null,this.titleBarCaptionColorDefault="",this.titleBarCaptionColorFocused="",this.titleBarCaptionTextShadow="0 1px 0 rgba(255,255,255,.7)",this.titleBarCaptionTextAlign="center",this.titleBarBorderBottomDefault="1px solid rgba(0,0,0,0.2)",this.titleBarBorderBottomFocused=null,this.frameBorderRadius="6px",this.frameBorderWidthDefault="1px",this.frameBorderWidthFocused=this.frameBorderWidthDefault,this.frameBorderColorDefault="rgba(1, 1, 1, 0.2)",this.frameBorderColorFocused=this.frameBorderColorDefault,this.frameBorderStyle="solid",this.frameBoxShadow="2px 3px 16px rgba(0,0,0,.6)",this.frameBackgroundColor="transparent",this._partsBuilder=null,this.frameComponents=[],this.frameHeightAdjust=1,this.resizeAreaWidth=20,this.resizeAreaHeight=20,this.resizeAreaOffset=0,this.resizeAreaVisible=!1,this.getFrameInnerBorderRadius=function(t,r){return t?r?{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthFocused,10)+"px"}:{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthDefault,10)+"px"}:null},this.onInitialize=function(){if(e.showCloseButton){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.size=14,r.captionShiftYpx=0,r.captionFontRatio=1,r.borderRadius=2,r.backgroundColorPressed="transparent",r.backgroundColorDefault="transparent",r.caption="✖",r.captionColorDefault="gray",r.captionColorFocused="gray",r.captionColorHovered="silver",r.captionColorPressed="black",r.borderWidth=0,r.borderColorDefault="#aaaaaa",r.borderStyle="solid";var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-10,-18,"RIGHT_TOP")}},this.onTitleBarStyleInitialize=function(){}}i.prototype.getPartsBuilder=function(){return null===this._partsBuilder&&(this._partsBuilder=new n),this._partsBuilder},i.prototype.initialize=function(){this.onInitialize()},i.prototype.addFrameComponent=function(e,t,r,n,i,a){var l=new o(e,t,r,n,i,a);return t._onTakeFocus&&t._onReleaseFocus&&l.setFocusCallback(t._onTakeFocus,t._onReleaseFocus),this.frameComponents.push(l),l},e.exports=i},function(e,t,r){function n(){this.imageDefault=null,this.imageHovered=null,this.imagePressed=null,this.imageFocused=null,this.imageStore={}}r(6)(n,r(8)),n.prototype._setImage=function(e,t,r){var n=this.imageStore[e];if(n)return n;var o=document.createElement("img");if(o.src=e,t&&r){var i="margin:0px;padding:0px;width:"+t+"px;height:"+r+"px";o.setAttribute("style",i)}return this.imageStore[e]=o,o},n.prototype.setSrc=function(e){var t=this;e.default&&(t.imageDefault=t._setImage(e.default,e.width,e.height)),e.hovered&&(t.imageHovered=t._setImage(e.hovered,e.width,e.height)),e.pressed&&(t.imagePressed=t._setImage(e.pressed,e.width,e.height)),e.focused&&(t.imageFocused=t._setImage(e.focused,e.width,e.height))},e.exports=n},function(e,t){e.exports=function(e){this.childMenuHTML="",this.childMenuWidth=0,this.childMenuAlign="LEFT",this.yOffset=0,this.xOffset=0}},function(e,t){function r(e,t,r,n,o,i){var a=this;a.id=e,a.x=r,a.y=n,a.frame=null,a._focusTakingCallabck=null,a._focusReleasingCallabck=null,a.frameComponentAlign=o||CALIGN.LEFT_TOP,a.htmlElement=t,a.htmlElement.style.zIndex=50,a.htmlElement.setAttribute("component-id",e),i&&i.childMenu?a.childMenu=i.childMenu:t.querySelector(".jsframe-child-menu")&&(a.childMenu=t.querySelector(".jsframe-child-menu"))}r.prototype.setFocusCallback=function(e,t){this._focusTakingCallabck=e,this._focusReleasingCallabck=t},r.prototype.setFrame=function(e){this.frame=e,this.htmlElement.parentObject=e,this.updateAlign()},r.prototype.updateAlign=function(){var e=this,t=e.frameComponentAlign,r=e.frame,n=e.htmlElement.style;n.userSelect="none";var o=e.x,i=e.y,a=r.getWidth(),l=r.getHeight(),s=n.width,d=n.height;CALIGN.LEFT_TOP==t?(n.left=o+"px",n.top=i+"px"):CALIGN.HCENTER_TOP==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=i+"px"):CALIGN.RIGHT_TOP==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=i+"px"):CALIGN.LEFT_VCENTER==t?(n.left=o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.HCENTER_VCENTER==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.RIGHT_VCENTER==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.LEFT_BOTTOM==t?(n.left=o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.HCENTER_BOTTOM==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.RIGHT_BOTTOM==t&&(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px")},r.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},r.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},e.exports=r},function(e,t,r){r(22);var n=r(9);e.exports.getStyle=function(e,t){var r={titleBar:{greenButton:"maximize"}},o=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="11px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=null,e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="26px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="1px solid #b1aeb1",e.titleBarBorderBottomFocused=e.titleBarBorderBottomDefault,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#acacac",e.frameBorderColorFocused="#acacac",e.frameBorderStyle="solid",e.frameBoxShadow="0px 0px 20px rgba(0, 0, 0, 0.3)",e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-yosemite-focused",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-yosemite-default",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQoU2NkIBIwEqmOAa6wgZWlH6Sp4fefQjCNxkdRyMjAUPCf4f8CkEJGBsaE/wwME2AaUaxuYGWeD1IAUgjS0PD7byLMaaQrBLmJKKuJ9gyhYCI6HAGlFDALf9s7eQAAAABJRU5ErkJggg==",n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVElEQVQoU2NkIBIwoqvjixFoAIl9WvIBTMMAhkLeGP79IMnPSz46kq8QZN1/hv/2IBMYGRgMQPR/BoYLED7jQZAzwFYTrRDZLdRxI7KJRAcPrvAHAATYKgvLH0fAAAAAAElFTkSuQmCC";"fullscreen"===o.titleBar.greenButton&&(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZElEQVQoU2NkIBIwEqmOAUWhQIKAwL8///czMDAYwAz4tOQjWA1cIUjRhwUfPqArxlDIF8N/nomF0RFdMTaF/xkYGC6gK/605KMhitV8MfwghSCAohhkAy6FKIphniIvePCFKQDzGzsLS+7n2AAAAABJRU5ErkJggg==");var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",a="margin:0px;padding:0px;width:10px;height:10px",l=document.createElement("img");l.src=n,l.setAttribute("style",a);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAiUlEQVQoU2NkwAIEogQMPiz7cAFZihGbQt4Y/v0MjIwLPy/+sAAmj1MhIwODw39GxkSYYrwKQabBFGNVyBfL1///P6MBzFrmf4yFjCCH/2X63w93C+P/C58WfypEdzvYRN5YgQTG///ng61iYDjweclHR6wKkRUTVAhTzPD/fzxeE2FWYQtskBwAKwQ7tVjAL4MAAAAASUVORK5CYII=",s.setAttribute("style",a);var d=document.createElement("img");d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMUlEQVQoU2NkIBIwEqmOgUYKa7w4Ghj+M9hjdQYjw8GWbT8awFYTrZAYD9HIM8RYDQBsEAwLkq4IAgAAAABJRU5ErkJggg==",d.setAttribute("style",a);var u=document.createElement("img");u.src=r,u.setAttribute("style",a);var c=document.createElement("img");c.src=i,c.setAttribute("style","margin:0px;padding:0px;width:6px;height:6px");var m=t.buildImageButtonAppearance();m.imageDefault=c,m.imageHovered=u,m.imagePressed=u,m.imageFocused=c,m.size=10,m.borderRadius=5,m.borderWidth=1,m.borderColorDefault="#c6c6c6",m.borderColorFocused="#d3524e",m.borderColorHovered=m.borderColorFocused,m.borderColorPressed="#e64842",m.borderStyleDefault="solid",m.borderStyleFocused=m.borderStyleDefault,m.borderStyleHovered=m.borderStyleDefault,m.borderStylePressed=m.borderStyleDefault,m.backgroundColorDefault="#d0d0d0",m.backgroundColorFocused="#fc615c",m.backgroundColorHovered=m.backgroundColorFocused,m.backgroundColorPressed=m.backgroundColorDefault,m.setSrc({default:i,focused:i,hovered:r,pressed:r});var p=t.buildButton(m),h=8,f=-19,y="LEFT_TOP";e.addFrameComponent("closeButton",p,h,f,y);var b=t.buildImageButtonAppearance(m);b.borderColorDefault="#c6c6c6",b.borderColorFocused="#e6b347",b.borderColorHovered=b.borderColorFocused,b.borderColorPressed="#e1a12d",b.backgroundColorDefault="#d0d0d0",b.backgroundColorFocused="#fdbe40",b.backgroundColorHovered=b.backgroundColorFocused,b.backgroundColorPressed=b.backgroundColorDefault,b.imageDefault=c,b.imageHovered=d,b.imagePressed=d,b.imageFocused=c;var g=t.buildButton(b),v=t.buildButton(b);v.style.display="none";h=28,f=-19,y="LEFT_TOP";e.addFrameComponent("minimizeButton",g,h,f,y),e.addFrameComponent("deminimizeButton",v,h,f,y);var C=t.buildImageButtonAppearance(m);C.borderColorDefault="#c6c6c6",C.borderColorFocused="#67b657",C.borderColorHovered=C.borderColorFocused,C.borderColorPressed="#00af38",C.backgroundColorDefault="#d0d0d0",C.backgroundColorFocused="#34ca49",C.backgroundColorHovered=C.backgroundColorFocused,C.backgroundColorPressed=C.backgroundColorDefault,C.imageDefault=c,C.imageHovered=l,C.imagePressed=l,C.imageFocused=c;var B=t.buildButton(C),E=t.buildImageButtonAppearance(m);E.borderColorDefault="#c6c6c6",E.borderColorFocused="#67b657",E.borderColorHovered=E.borderColorFocused,E.borderColorPressed="#00af38",E.backgroundColorDefault="#d0d0d0",E.backgroundColorFocused="#34ca49",E.backgroundColorHovered=E.backgroundColorFocused,E.backgroundColorPressed=E.backgroundColorDefault,E.imageDefault=c,E.imageHovered=s,E.imagePressed=s,E.imageFocused=c;var w=t.buildButton(E);w.style.display="none";h=48,f=-19,y="LEFT_TOP";e.addFrameComponent("dezoomButton",w,h,f,y),e.addFrameComponent("zoomButton",B,h,f,y)},e}},function(e,t,r){var n=r(0),o=r(23);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-yosemite-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-yosemite-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n",""]),e.exports=t},function(e,t,r){r(25),e.exports.getStyle=function(e){return e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#9b9a9b",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="30px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="solid 1px #aaaaaa",e.titleBarBorderBottomFocused="solid 1px #1883d7",e.frameBorderRadius="0px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#1883d7",e.frameBorderStyle="solid",e.frameBoxShadow=null,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-redstone-focused",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-redstone-default",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=45,r.height=28,r.borderRadius=0,r.borderWidth=0,r.borderColorDefault="#c6c6c6",r.borderColorFocused="#fc615c",r.borderColorHovered=r.borderColorFocused,r.borderColorPressed="#e64842",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#e81123",r.backgroundColorPressed="#f1707a",r.caption="╳",r.captionColorDefault="#9b9a9b",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=0,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("closeButton",n,o,i,a);var l=t.buildTextButtonAppearance();l.width=45,l.height=28,l.borderRadius=0,l.borderWidth=0,l.borderColorDefault="#c6c6c6",l.borderColorFocused="#fc615c",l.borderColorHovered=l.borderColorFocused,l.borderColorPressed="#e64842",l.borderStyleDefault="solid",l.borderStyleFocused=l.borderStyleDefault,l.borderStyleHovered=l.borderStyleDefault,l.borderStylePressed=l.borderStyleDefault,l.backgroundColorDefault="white",l.backgroundColorFocused="white",l.backgroundColorHovered="#e5e5e5",l.backgroundColorPressed="#cccccc",l.caption="☐",l.captionColorDefault="#9b9a9b",l.captionColorFocused="black",l.captionColorHovered="black",l.captionColorPressed="black",l.captionShiftYpx=1,l.captionFontRatio=.55;var s=t.buildTextButton(l);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("maximizeButton",s,o,i,a);var d=t.buildTextButtonAppearance();d.width=45,d.height=28,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="white",d.backgroundColorFocused="white",d.backgroundColorHovered="#e5e5e5",d.backgroundColorPressed="#cccccc",d.caption="_",d.captionColorDefault="#9b9a9b",d.captionColorFocused="black",d.captionColorHovered="black",d.captionColorPressed="black",d.captionShiftYpx=-2,d.captionFontRatio=.3;var u=t.buildTextButton(d);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("minimizeButton",u,o,i,a);var c=t.buildTextButtonAppearance();c.width=45,c.height=28,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="white",c.backgroundColorFocused="white",c.backgroundColorHovered="#e5e5e5",c.backgroundColorPressed="#cccccc",c.caption="▣",c.captionColorDefault="#9b9a9b",c.captionColorFocused="black",c.captionColorHovered="black",c.captionColorPressed="black",c.captionShiftYpx=1,c.captionFontRatio=.6;var m=t.buildTextButton(c);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";m.style.display="none",e.addFrameComponent("deminimizeButton",m,o,i,a);var p=t.buildTextButtonAppearance();p.width=45,p.height=28,p.borderRadius=0,p.borderWidth=0,p.borderColorDefault="#c6c6c6",p.borderColorFocused="#fc615c",p.borderColorHovered=p.borderColorFocused,p.borderColorPressed="#e64842",p.borderStyleDefault="solid",p.borderStyleFocused=p.borderStyleDefault,p.borderStyleHovered=p.borderStyleDefault,p.borderStylePressed=p.borderStyleDefault,p.backgroundColorDefault="white",p.backgroundColorFocused="white",p.backgroundColorHovered="#e5e5e5",p.backgroundColorPressed="#cccccc",p.caption="❏",p.captionColorDefault="#9b9a9b",p.captionColorFocused="black",p.captionColorHovered="black",p.captionColorPressed="black",p.captionShiftYpx=1,p.captionFontRatio=.55;var h=t.buildTextButton(p);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";h.style.display="none",e.addFrameComponent("restoreButton",h,o,i,a)},e}},function(e,t,r){var n=r(0),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-redstone-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-redstone-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t,r){r(28),e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="5px",e.titleBarColorDefault="white",e.titleBarColorFocused="white",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#aaaaaa",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="white",e.frameComponents=new Array,e.frameHeightAdjust=2,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-popup-focused",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-popup-default",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=1,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#eeeeee",r.backgroundColorPressed="#dddddd",r.backgroundBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",r.caption="✖",r.captionColorDefault="black",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=-6-parseInt(e.titleBarHeight);e.addFrameComponent("closeButton",n,10,o,"RIGHT_TOP")},e}},function(e,t,r){var n=r(0),o=r(29);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-popup-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-popup-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t){e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="0px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="0px",e.titleBarCaptionColorDefault="transparent",e.titleBarCaptionColorFocused="transparent",e.titleBarHeight="0px",e.titleBarColorDefault="transparent",e.titleBarColorFocused="transparent",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="10px",e.frameBorderWidthDefault="0px",e.frameBorderWidthFocused="0px",e.frameBorderColorDefault="transparent",e.frameBorderColorFocused="transparent",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 15px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="transparent",e.frameComponents=[],e.frameHeightAdjust=1,e.captionClor="darkgray",e.pullUpDisabled=!1,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=0,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="transparent",r.backgroundColorFocused="transparent",r.backgroundColorHovered="transparent",r.backgroundColorPressed="transparent",r.backgroundBoxShadow=null,r.caption="✖",r.captionColorDefault=e.captionClor,r.captionColorFocused=e.captionClor,r.captionColorHovered=e.captionClor,r.captionColorPressed=e.captionClor,r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-6,3,"RIGHT_TOP")},e}},function(e,t,r){r(32);var n=r(9);function o(e,t,r){var n,o=e.getPartsBuilder(),a=0;for(var l in n=r?t.titleBar.buttonsOnLeft:t.titleBar.buttons){var s=n[l],d=o.buildTextButtonAppearance();d.fa=s.fa,d.width=t.titleBar.buttonWidth,d.height=t.titleBar.buttonHeight,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="transparent",d.backgroundColorFocused="transparent",d.backgroundColorHovered="transparent",d.backgroundColorPressed="transparent";var u=i(t.titleBar.buttonColor);d.captionColorDefault=t.titleBar.buttonColor,d.captionColorFocused=t.titleBar.buttonColor,d.captionColorHovered=u.hovered,d.captionColorPressed=u.pressed,d.captionShiftYpx=0,d.captionFontRatio=1;var c=o.buildTextButton(d);s.visible?c.style.display="flex":(r?a-=t.titleBar.buttonWidth:a+=t.titleBar.buttonWidth,c.style.display="none");var m,p,h=parseInt(e.titleBarHeight),f=a,y=-h+(h-d.height)/2;m=r?"LEFT_TOP":"RIGHT_TOP",s.childMenuHTML&&((p=document.createElement("div")).id=s.name+"_child_menu",p.innerHTML=s.childMenuHTML,p.style.position="absolute",p.style.width=(s.childMenuWidth?s.childMenuWidth:200)+"px",p.style.top=parseInt(c.style.top,10)+parseInt(c.style.height,10)/2+h/2+"px",p.style.left=c.style.left,p.style.display="none",c.appendChild(p)),e.addFrameComponent(s.name,c,f,y,m,{childMenu:p}),a+=r?t.titleBar.buttonWidth:-t.titleBar.buttonWidth}}function i(e){var t=document.createElement("canvas");t.height=1,t.width=1;var r=t.getContext("2d");r.fillStyle=e,r.fillRect(0,0,1,1);var n=r.getImageData(0,0,1,1).data,o=n[0],i=n[1],a=n[2],l=n[3]/255,s=.85*l;return{src:"rgb("+o+","+i+","+a+","+s+")",hovered:"rgb("+o+","+i+","+a+","+s+")",pressed:"rgb("+o+","+i+","+a+","+.75*l+")"}}e.exports.getStyle=function(e,t){var r={border:{color:"transparent",width:0,radius:6},control:{maximizeWithoutTitleBar:!1,restoreKey:"Escape"},titleBar:{color:"white",background:"black",leftMargin:20,height:30,fontSize:12,buttonWidth:36,buttonHeight:16,buttonColor:"white",buttons:[{fa:"fas fa-times",name:"closeButton",visible:!0},{fa:"far fa-window-maximize",name:"maximizeButton",visible:!0},{fa:"far fa-window-restore",name:"restoreButton",visible:!1},{fa:"far fa-window-minimize",name:"minimizeButton",visible:!0},{fa:"fas fa-caret-up",name:"deminimizeButton",visible:!1}],buttonsOnLeft:[]}},i=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize=i.titleBar.fontSize+"px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=i.titleBar.leftMargin+"px",e.titleBarCaptionColorDefault=i.titleBar.color,e.titleBarCaptionColorFocused=i.titleBar.color,e.titleBarCaptionTextShadow=null,e.titleBarCaptionTextAlign="left",e.titleBarHeight=i.titleBar.height+"px",e.titleBarColorDefault=i.titleBar.background,e.titleBarColorFocused=i.titleBar.background,e.titleBarBorderBottomDefault="solid 0px #aaaaaa",e.titleBarBorderBottomFocused="solid 0px #1883d7",e.frameBorderRadius=i.border.radius+"px",e.frameBorderWidthDefault=i.border.width+"px",e.frameBorderWidthFocused=i.border.width+"px",e.frameBorderColorDefault=i.border.color,e.frameBorderColorFocused=i.border.color,e.frameBorderStyle="solid",e.frameBoxShadow=i.border.shadow,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){o(e,i,!1),o(e,i,!0)},e}},function(e,t,r){var n=r(0),o=r(33);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-material-default {\n background: black;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-material-focused {\n background: black;\n border-top-left-radius: 36px;\n border-top-right-radius: 36px;\n}\n",""]),e.exports=t},function(e,t,r){var n=r(2);e.exports.getPresetWindow=function(e){var t={appearanceName:"yosemite",appearanceParam:{}},r={};e&&(r=e);var o="fullscreen"===r.maximizeButtonBehavior,i="minimize"===r.minimizeButtonBehavior?"minimizeButton":null,a="hide"===r.minimizeButtonBehavior?"minimizeButton":null,l=r.control;return o&&(t.appearanceParam.titleBar={greenButton:"fullscreen"}),t.setupPresetWindow=function(e){var t={maximizeButton:"zoomButton",maximizeParam:{fullScreen:o,restoreKey:"Escape"},demaximizeButton:"dezoomButton",deminimizeButton:"deminimizeButton",minimizeButton:i,hideButton:a,hideParam:{align:"CENTER_CENTER",duration:300},dehideParam:{duration:300},styleDisplay:"inline",animation:!0,animationDuration:100};l&&n({op:"overwrite-merge",object1:t,object2:l}),e.setControl(t)},t}}])})); \ No newline at end of file +e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}},{key:"addListenerFunc",value:function(e){this.listenerFuncs.push(e)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncs);try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}(),u=function(){function e(){i(this,e),this.listenerFuncMap=new Map}return l(e,[{key:"clearAll",value:function(){this.listenerFuncMap.clear()}},{key:"hasListenerFunc",value:function(e){return this.listenerFuncMap.has(e)}},{key:"putListenerFunc",value:function(e,t){this.listenerFuncMap.set(e,t)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncMap.values());try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}()}]).default},function(e,t,r){"use strict";var n=r(4),o=r(3),i=r(2),a=r(5);function l(e){this.eventListenerHelper=new a,this.windowMode="default",this.styleDisplay="flex",this.horizontalAlign="left",this.verticalAlign="top",this.keyListener=null,this.minimizeButton=null,this.maximizeButton=null,this.demaximizeButton=null,this.deminimizeButton=null,this.opts=e,this.isWindowManagerFixed=e.frame.jsFrame.isWindowManagerFixed,e.styleDisplay&&(this.styleDisplay=e.styleDisplay),e.minimizeButton&&(this.minimizeButton=e.minimizeButton),e.deminimizeButton&&(this.deminimizeButton=e.deminimizeButton),e.maximizeButton&&(this.maximizeButton=e.maximizeButton),e.demaximizeButton&&(this.demaximizeButton=e.demaximizeButton),e.hideButton&&(this.hideButton=e.hideButton),e.hideButtons&&(this.hideButtons=e.hideButtons),this.maximizeParam=e.maximizeParam,this.demaximizeParam=e.demaximizeParam,this.minimizeParam=e.minimizeParam,this.deminimizeParam=e.deminimizeParam,this.hideParam=e.hideParam,this.dehideParam=e.dehideParam,e.horizontalAlign&&(this.horizontalAlign=e.horizontalAlign),e.verticalAlign&&(this.verticalAlign=e.verticalAlign),this.animationEnabled=!1,this.animationDuration=100,this.frame=e.frame,this.hideFrameBorder=!0,this.hideTitleBar=!0,this.restoreKey=null,this.restoreDuration=null,this.restoreCallback=null,this.statsStore={},e.animation&&(this.animationEnabled=e.animation),e.animationDuration&&(this.animationDuration=e.animationDuration),this.eventListeners={},this.resizeListener=this.handleOnResize.bind(this)}l.prototype.on=function(e,t){this.eventListeners[e]=t},l.prototype.doMaximize=function(e){var t=this;if("hid"===t.windowMode)throw Error("[JSrame] It is not possible to change directly from the hid state to the maximized state");if("maximized"!==t.windowMode&&"maximizing"!==t.windowMode){t.windowMode="maximizing";var r=t.frame;t.eventListenerHelper.hasEventListener(window,"resize","window-resize-listener")||t.eventListenerHelper.addEventListener(window,"resize",t.resizeListener,{listenerName:"window-resize-listener"}),t.saveCurrentWindowStats("maximize_mode"),t.hideTitleBar=!!e&&e.fullScreen,t.hideTitleBar?r.hideAllVisibleFrameComponents():(t.maximizeButton&&r.hideFrameComponent(t.maximizeButton),t.demaximizeButton&&r.showFrameComponent(t.demaximizeButton,t.styleDisplay)),r.setMovable(!1),r.setResizable(!1),e&&e.restoreKey&&(t.restoreKey=e.restoreKey),e&&e.restoreDuration&&(t.restoreDuration=e.restoreDuration),e&&e.restoreCallback&&(t.restoreCallback=e.restoreCallback),t.renderMaximizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null})}},l.prototype.renderMaximizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("maximize_mode"),o=0,i=0,a=0,l=0;t.hideTitleBar&&(o=0,i=-n.titleBarHeight),t.hideFrameBorder?(a=window.innerWidth,l=window.innerHeight+(t.hideTitleBar?n.titleBarHeight:0)):(a=window.innerWidth-2*n.frameBorderWidthDefault,l=window.innerHeight-2*n.frameBorderWidthDefault+(t.hideTitleBar?n.titleBarHeight:0)),"right"==t.horizontalAlign&&(o=-a),"bottom"==t.verticalAlign&&(i=-l);var s=function(n){var s=n&&n.disableCallback;r.setPosition(o,i),t.hideFrameBorder&&(r.frameBorderWidthDefault=0,r.frameBorderWidthFocused=0,r.htmlElement.style.borderWidth="0px"),r.setSize(a,l,!0),s||(t.hideTitleBar&&(t.restoreKey&&(t.keyListener=function(e){e.code===t.restoreKey&&t.doCommand("restore")}),window.addEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.addEventListener("keydown",t.keyListener)),t.windowMode="maximized",e&&e.callback&&e.callback(t.frame,{eventType:"maximized"}),t.eventListeners.maximized&&t.eventListeners.maximized(t.frame,{eventType:"maximized"}))};e&&e.animation?t.animateFrame({frame:r,from:n,to:{left:o,top:i,width:a,height:l},duration:e.duration?e.duration:t.animationDuration,callback:s}):e&&"handleOnResize"===e.caller?s({disableCallback:!0}):s()},l.prototype.getWindowMode=function(){return this.windowMode},l.prototype.doDemaximize=function(e){var t=this,r=t.frame;if("hid"===t.windowMode)throw Error("[JSFrame] demaximize(=recovery from maximized) cannot be performed in hid state.");t.hasWindowStats("maximize_mode")&&(t.hideTitleBar||(t.maximizeButton&&r.showFrameComponent(t.maximizeButton,t.styleDisplay),t.demaximizeButton&&r.hideFrameComponent(t.demaximizeButton)),t.restoreWindow({restorePosition:!0,restoreMode:"maximize_mode",animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,forceShowFrameComponents:t.animationEnabled&&t.hideTitleBar,duration:e&&e.duration?e.duration:null,eventType:"demaximized"}))},l.prototype.handleOnResize=function(){this.renderMaximizedMode({caller:"handleOnResize"})},l.prototype.doMinimize=function(e){var t=this;if("minimized"!==t.windowMode&&"minimizing"!==t.windowMode){t.windowMode="minimizing";var r=t.frame;t.saveCurrentWindowStats("minimize_mode"),r.setResizable(!1),t.renderMinimizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null,toWidth:e&&e.toWidth?e.toWidth:null})}},l.prototype.renderMinimizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("minimize_mode"),o=t.getCurrentWindowStats(),i=t.getCurrentWindowStats();i.height=n.titleBarHeight,e&&e.toWidth&&(i.width=e.toWidth);var a=function(){r.setSize(i.width,i.height,!0),t.windowMode="minimized",t.minimizeButton&&r.hideFrameComponent(t.minimizeButton),t.deminimizeButton&&r.showFrameComponent(t.deminimizeButton,t.styleDisplay),e.callback&&e.callback(t.frame,{eventType:"minimized"}),t.eventListeners.minimized&&t.eventListeners.minimized(t.frame,{eventType:"minimized"})};e&&e.animation?t.animateFrame({toAlpha:1,duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:i,callback:a}):a()},l.prototype.doDeminimize=function(e){var t=this,r=t.frame;t.hasWindowStats("minimize_mode")&&(t.minimizeButton&&r.showFrameComponent(t.minimizeButton,t.styleDisplay),t.deminimizeButton&&r.hideFrameComponent(t.deminimizeButton),t.restoreWindow({restorePosition:!1,restoreMode:"minimize_mode",animation:t.animationEnabled,duration:e&&e.duration?e.duration:null,callback:e&&e.callback?e.callback:null,eventType:"deminimized"}))},l.prototype.doHide=function(e){var t=this;if("hid"!==t.windowMode&&"hiding"!==t.windowMode){t.windowMode="hiding";var r=t.frame;t.saveCurrentWindowStats("hide_mode"),r.setResizable(!1);var n={animation:t.animationEnabled};e&&i({op:"overwrite-merge",object1:n,object2:e}),t.renderHideMode(n)}},l.prototype.renderHideMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("hide_mode"),i=t.getCurrentWindowStats(),a={x:0,y:0},l=e.toElement;e.offset&&(a=e.offset);var s=0,d=0,u=e&&e.align?e.align:"LEFT_TOP";if(u&&o.LEFT_TOP!=u){if(o.HCENTER_TOP==u)s=i.left+i.width/2,d=i.top;else if(o.RIGHT_TOP==u)s=i.left+i.width,d=i.top;else if(o.LEFT_VCENTER==u)s=i.left,d=i.top+i.height/2;else if(o.HCENTER_VCENTER==u)s=i.left+i.width/2,d=i.top+i.height/2;else if(o.RIGHT_VCENTER==u)s=i.left+i.width,d=i.top+i.height/2;else if(o.LEFT_BOTTOM==u)s=i.left,d=i.top+i.height;else if(o.HCENTER_BOTTOM==u)s=i.left+i.width/2,d=i.top+i.height;else if(o.RIGHT_BOTTOM==u)s=i.left+i.width,d=i.top+i.height;else if("ABSOLUTE"==u)if(l){var c=l.getBoundingClientRect();t.isWindowManagerFixed?(s=c.left,d=c.top):(s=c.left+window.pageXOffset,d=c.top+window.pageYOffset)}else s=a.x,d=a.y}else s=i.left,d=i.top;var m={left:s,top:d,width:0,height:n.titleBarHeight},p=function(){r.setSize(m.width,m.height,!0),t.windowMode="hid",e&&e.callback&&e.callback(t.frame,{eventType:"hid"}),t.eventListeners.hid&&t.eventListeners.hid(t.frame,{eventType:"hid"})};r.hideAllVisibleFrameComponents(),e&&e.animation?t.animateFrame({fromAlpha:e.silent?0:1,toAlpha:0,ease:!0,duration:e.duration?e.duration:t.animationDuration,frame:r,from:i,to:m,callback:p}):p()},l.prototype.doDehide=function(e){this.frame;this.hasWindowStats("hide_mode")&&this.restoreWindow({duration:e&&e.duration?e.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:this.animationEnabled,forceShowFrameComponents:!0,callback:e&&e.callback?e.callback:null,eventType:"dehided"})},l.prototype.loadWindowStats=function(e){return this.statsStore[e]},l.prototype.saveCurrentWindowStats=function(e){var t=this,r=t.getCurrentWindowStats();if(t.hasWindowStats(e)){var n=t.loadWindowStats(e),o=!t.windowStatsEquals(r,n);return o&&(t.statsStore[e]=r),o}return t.statsStore[e]=r,!0},l.prototype.windowStatsEquals=function(e,t){return!(!e||!t)&&JSON.stringify(e)===JSON.stringify(t)},l.prototype.clearWindowStats=function(e){this.statsStore[e]=null},l.prototype.hasWindowStats=function(e){return this.statsStore[e]},l.prototype.getCurrentWindowStats=function(){var e=this.frame,t=parseInt(e.titleBar.style.height,10),r=e.frameBorderWidthDefault,n=e.frameBorderWidthFocused;return{left:e.getLeft(),top:e.getTop(),width:e.getWidth(),height:e.getHeight(),titleBarHeight:t,frameBorderWidthDefault:r,frameBorderWidthFocused:n,resizable:e.resizable,movable:e.movable}},l.prototype.restoreWindow=function(e){var t=this,r=t.frame,n=t.loadWindowStats(e.restoreMode),o=t.getCurrentWindowStats();r.frameBorderWidthDefault=n.frameBorderWidthDefault,r.frameBorderWidthFocused=n.frameBorderWidthFocused,r.htmlElement.style.borderWidth=r.frameBorderWidthFocused;var i=function(){e&&0==e.restorePosition&&(n.left=o.left,n.top=o.top),r.setPosition(n.left,n.top);r.setSize(n.width,n.height,!0),r.setResizable(n.resizable),r.setMovable(n.movable),t.clearWindowStats(e.restoreMode),t.keyListener&&(window.removeEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.removeEventListener("keydown",t.keyListener),t.keyListener=null),t.windowMode="default",e&&e.forceShowFrameComponents&&r.showAllVisibleFrameComponents(),r.show();var i="restored";e&&e.eventType&&(i=e.eventType),e&&e.callback&&e.callback(t.frame,{eventType:i}),t.eventListeners[i]&&t.eventListeners[i](t.frame,{eventType:i})};e&&e.animation?t.animateFrame({duration:e.duration?e.duration:t.animationDuration,frame:r,fromAlpha:0,toAlpha:1,from:o,to:n,callback:i}):i(),t.eventListenerHelper.removeEventListener(window,"resize",t.resizeListener)},l.prototype.animateFrame=function(e){var t=isNaN(e.fromAlpha)?1:e.fromAlpha,r=e.from,o=e.to;(new n).set(e.frame).setDuration(e.duration?e.duration:this.animationDuration).fromPosition(r.left,r.top,"LEFT_TOP").toPosition(o.left,o.top,"LEFT_TOP").fromWidth(r.width).fromHeight(r.height).toWidth(o.width).toHeight(o.height).fromAlpha(t).toAlpha(0==e.toAlpha?0:1).ease(e.ease).start(0,!1).then((function(t){e.callback()}))},l.prototype.doCommand=function(e,t){var r=this;"maximize"===e&&r._defaultFunctionMaximize(r.frame),"demaximize"===e&&r._defaultFunctionDemaximize(r.frame),"restore"===e&&r._defaultFunctionRestoreFromFullscreen(r.frame),"minimize"===e&&r._defaultFunctionMinimize(r.frame),"deminimize"===e&&r._defaultFunctionDeminimize(r.frame),"hide"===e&&r._defaultFunctionHide(r.frame),"dehide"===e&&r._defaultFunctionDehide(r.frame)},l.prototype._defaultFunctionMaximize=function(e,t){var r=this.opts,n={fullScreen:!0===r.maximizeWithoutTitleBar,restoreKey:r.restoreKey?r.restoreKey:"Escape",restoreDuration:r.restoreDuration};this.maximizeParam&&i({op:"overwrite-merge",object1:n,object2:this.maximizeParam}),e.control.doMaximize(n)},l.prototype._defaultFunctionDemaximize=function(e,t){e.control.doDemaximize({})},l.prototype._defaultFunctionRestoreFromFullscreen=function(e,t){e.control.doDemaximize({duration:this.restoreDuration?this.restoreDuration:null,callback:this.restoreCallback?this.restoreCallback:null})},l.prototype._defaultFunctionMinimize=function(e,t){e.control.doMinimize(this.minimizeParam)},l.prototype._defaultFunctionDeminimize=function(e,t){e.control.doDeminimize(this.deminimizeParam)},l.prototype._defaultFunctionHide=function(e,t){var r={align:"CENTER_BOTTOM"};this.hideParam&&(r=this.hideParam),e.control.doHide(r)},l.prototype._defaultFunctionDehide=function(e,t){e.control.doDehide(this.dehideParam)},l.prototype.setupDefaultEvents=function(){var e=this;if(e.maximizeButton&&e.frame.on(e.maximizeButton,"click",e._defaultFunctionMaximize.bind(e)),e.demaximizeButton&&e.frame.on(e.demaximizeButton,"click",e._defaultFunctionDemaximize.bind(e)),e.minimizeButton&&e.frame.on(e.minimizeButton,"click",e._defaultFunctionMinimize.bind(e)),e.deminimizeButton&&e.frame.on(e.deminimizeButton,"click",e._defaultFunctionDeminimize.bind(e)),e.hideButton&&e.frame.on(e.hideButton,"click",e._defaultFunctionHide.bind(e)),e.hideButtons)for(var t in e.hideButtons){var r=e.hideButtons[t];r&&e.frame.on(r,"click",e._defaultFunctionHide.bind(e))}},e.exports=l},function(e,t){var r=function(){function e(){var e=this;e._timerId=null,e._isRunning=!1,e._timerInterval=0,e._internalCallback=function(){e._timerMethod&&e._timerMethod(e);e._isRunning&&(clearTimeout(e._timerId),e._timerId=setTimeout(e._internalCallback,e._timerInterval))},e._timerMethod=null}return e.prototype.setCallback=function(e){return this._timerMethod=e,this},e.prototype.setIntervalMillis=function(e){return this._timerInterval=e,this},e.prototype.stopTimer=function(){return this._isRunning=!1,this},e.prototype.startTimer=function(){var e=this;return e._timerInterval>0&&(e._timerId=setTimeout(e._internalCallback,e._timerInterval),e._isRunning=!0),e},e}();e.exports=r},function(e,t,r){var n=r(7),o=r(20);function i(){var e=this;this.showTitleBar=!0,this.showCloseButton=!0,this.titleBarCaption="",this.titleBarCaptionFontSize="12px",this.titleBarCaptionFontWeight="bold",this.titleBarHeight="24px",this.useIframe=!1,this.useFrame=!0,this.titleBarClassNameDefault=null,this.titleBarClassNameFocused=null,this.setUseIFrame=function(t){return e.useIframe=t,e.useFrame=!t,e},this.titleBarCaptionLeftMargin="5px",this.titleBarColorDefault=null,this.titleBarColorFocused=null,this.titleBarCaptionColorDefault="",this.titleBarCaptionColorFocused="",this.titleBarCaptionTextShadow="0 1px 0 rgba(255,255,255,.7)",this.titleBarCaptionTextAlign="center",this.titleBarBorderBottomDefault="1px solid rgba(0,0,0,0.2)",this.titleBarBorderBottomFocused=null,this.frameBorderRadius="6px",this.frameBorderWidthDefault="1px",this.frameBorderWidthFocused=this.frameBorderWidthDefault,this.frameBorderColorDefault="rgba(1, 1, 1, 0.2)",this.frameBorderColorFocused=this.frameBorderColorDefault,this.frameBorderStyle="solid",this.frameBoxShadow="2px 3px 16px rgba(0,0,0,.6)",this.frameBackgroundColor="transparent",this._partsBuilder=null,this.frameComponents=[],this.frameHeightAdjust=1,this.resizeAreaWidth=20,this.resizeAreaHeight=20,this.resizeAreaOffset=0,this.resizeAreaVisible=!1,this.getFrameInnerBorderRadius=function(t,r){return t?r?{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthFocused,10)+"px"}:{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthDefault,10)+"px"}:null},this.onInitialize=function(){if(e.showCloseButton){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.size=14,r.captionShiftYpx=0,r.captionFontRatio=1,r.borderRadius=2,r.backgroundColorPressed="transparent",r.backgroundColorDefault="transparent",r.caption="✖",r.captionColorDefault="gray",r.captionColorFocused="gray",r.captionColorHovered="silver",r.captionColorPressed="black",r.borderWidth=0,r.borderColorDefault="#aaaaaa",r.borderStyle="solid";var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-10,-18,"RIGHT_TOP")}},this.onTitleBarStyleInitialize=function(){}}i.prototype.getPartsBuilder=function(){return null===this._partsBuilder&&(this._partsBuilder=new n),this._partsBuilder},i.prototype.initialize=function(){this.onInitialize()},i.prototype.addFrameComponent=function(e,t,r,n,i,a){var l=new o(e,t,r,n,i,a);return t._onTakeFocus&&t._onReleaseFocus&&l.setFocusCallback(t._onTakeFocus,t._onReleaseFocus),this.frameComponents.push(l),l},e.exports=i},function(e,t,r){function n(){this.imageDefault=null,this.imageHovered=null,this.imagePressed=null,this.imageFocused=null,this.imageStore={}}r(6)(n,r(8)),n.prototype._setImage=function(e,t,r){var n=this.imageStore[e];if(n)return n;var o=document.createElement("img");if(o.src=e,t&&r){var i="margin:0px;padding:0px;width:"+t+"px;height:"+r+"px";o.setAttribute("style",i)}return this.imageStore[e]=o,o},n.prototype.setSrc=function(e){var t=this;e.default&&(t.imageDefault=t._setImage(e.default,e.width,e.height)),e.hovered&&(t.imageHovered=t._setImage(e.hovered,e.width,e.height)),e.pressed&&(t.imagePressed=t._setImage(e.pressed,e.width,e.height)),e.focused&&(t.imageFocused=t._setImage(e.focused,e.width,e.height))},e.exports=n},function(e,t){e.exports=function(e){this.childMenuHTML="",this.childMenuWidth=0,this.childMenuAlign="LEFT",this.yOffset=0,this.xOffset=0}},function(e,t){function r(e,t,r,n,o,i){var a=this;a.id=e,a.x=r,a.y=n,a.frame=null,a._focusTakingCallabck=null,a._focusReleasingCallabck=null,a.frameComponentAlign=o||CALIGN.LEFT_TOP,a.htmlElement=t,a.htmlElement.style.zIndex=50,a.htmlElement.setAttribute("component-id",e),i&&i.childMenu?a.childMenu=i.childMenu:t.querySelector(".jsframe-child-menu")&&(a.childMenu=t.querySelector(".jsframe-child-menu"))}r.prototype.setFocusCallback=function(e,t){this._focusTakingCallabck=e,this._focusReleasingCallabck=t},r.prototype.setFrame=function(e){this.frame=e,this.htmlElement.parentObject=e,this.updateAlign()},r.prototype.updateAlign=function(){var e=this,t=e.frameComponentAlign,r=e.frame,n=e.htmlElement.style;n.userSelect="none";var o=e.x,i=e.y,a=r.getWidth(),l=r.getHeight(),s=n.width,d=n.height;CALIGN.LEFT_TOP==t?(n.left=o+"px",n.top=i+"px"):CALIGN.HCENTER_TOP==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=i+"px"):CALIGN.RIGHT_TOP==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=i+"px"):CALIGN.LEFT_VCENTER==t?(n.left=o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.HCENTER_VCENTER==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.RIGHT_VCENTER==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.LEFT_BOTTOM==t?(n.left=o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.HCENTER_BOTTOM==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.RIGHT_BOTTOM==t&&(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px")},r.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},r.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},e.exports=r},function(e,t,r){r(22);var n=r(9);e.exports.getStyle=function(e,t){var r={titleBar:{greenButton:"maximize"}},o=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="11px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=null,e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="26px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="1px solid #b1aeb1",e.titleBarBorderBottomFocused=e.titleBarBorderBottomDefault,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#acacac",e.frameBorderColorFocused="#acacac",e.frameBorderStyle="solid",e.frameBoxShadow="0px 0px 20px rgba(0, 0, 0, 0.3)",e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-yosemite-focused",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-yosemite-default",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQoU2NkIBIwEqmOAa6wgZWlH6Sp4fefQjCNxkdRyMjAUPCf4f8CkEJGBsaE/wwME2AaUaxuYGWeD1IAUgjS0PD7byLMaaQrBLmJKKuJ9gyhYCI6HAGlFDALf9s7eQAAAABJRU5ErkJggg==",n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVElEQVQoU2NkIBIwoqvjixFoAIl9WvIBTMMAhkLeGP79IMnPSz46kq8QZN1/hv/2IBMYGRgMQPR/BoYLED7jQZAzwFYTrRDZLdRxI7KJRAcPrvAHAATYKgvLH0fAAAAAAElFTkSuQmCC";"fullscreen"===o.titleBar.greenButton&&(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZElEQVQoU2NkIBIwEqmOAUWhQIKAwL8///czMDAYwAz4tOQjWA1cIUjRhwUfPqArxlDIF8N/nomF0RFdMTaF/xkYGC6gK/605KMhitV8MfwghSCAohhkAy6FKIphniIvePCFKQDzGzsLS+7n2AAAAABJRU5ErkJggg==");var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",a="margin:0px;padding:0px;width:10px;height:10px",l=document.createElement("img");l.src=n,l.setAttribute("style",a);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAiUlEQVQoU2NkwAIEogQMPiz7cAFZihGbQt4Y/v0MjIwLPy/+sAAmj1MhIwODw39GxkSYYrwKQabBFGNVyBfL1///P6MBzFrmf4yFjCCH/2X63w93C+P/C58WfypEdzvYRN5YgQTG///ng61iYDjweclHR6wKkRUTVAhTzPD/fzxeE2FWYQtskBwAKwQ7tVjAL4MAAAAASUVORK5CYII=",s.setAttribute("style",a);var d=document.createElement("img");d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMUlEQVQoU2NkIBIwEqmOgUYKa7w4Ghj+M9hjdQYjw8GWbT8awFYTrZAYD9HIM8RYDQBsEAwLkq4IAgAAAABJRU5ErkJggg==",d.setAttribute("style",a);var u=document.createElement("img");u.src=r,u.setAttribute("style",a);var c=document.createElement("img");c.src=i,c.setAttribute("style","margin:0px;padding:0px;width:6px;height:6px");var m=t.buildImageButtonAppearance();m.imageDefault=c,m.imageHovered=u,m.imagePressed=u,m.imageFocused=c,m.size=10,m.borderRadius=5,m.borderWidth=1,m.borderColorDefault="#c6c6c6",m.borderColorFocused="#d3524e",m.borderColorHovered=m.borderColorFocused,m.borderColorPressed="#e64842",m.borderStyleDefault="solid",m.borderStyleFocused=m.borderStyleDefault,m.borderStyleHovered=m.borderStyleDefault,m.borderStylePressed=m.borderStyleDefault,m.backgroundColorDefault="#d0d0d0",m.backgroundColorFocused="#fc615c",m.backgroundColorHovered=m.backgroundColorFocused,m.backgroundColorPressed=m.backgroundColorDefault,m.setSrc({default:i,focused:i,hovered:r,pressed:r});var p=t.buildButton(m),h=8,f=-19,y="LEFT_TOP";e.addFrameComponent(o.closeButtonName||"closeButton",p,h,f,y);var b=t.buildImageButtonAppearance(m);b.borderColorDefault="#c6c6c6",b.borderColorFocused="#e6b347",b.borderColorHovered=b.borderColorFocused,b.borderColorPressed="#e1a12d",b.backgroundColorDefault="#d0d0d0",b.backgroundColorFocused="#fdbe40",b.backgroundColorHovered=b.backgroundColorFocused,b.backgroundColorPressed=b.backgroundColorDefault,b.imageDefault=c,b.imageHovered=d,b.imagePressed=d,b.imageFocused=c;var g=t.buildButton(b),v=t.buildButton(b);v.style.display="none";h=28,f=-19,y="LEFT_TOP";e.addFrameComponent("minimizeButton",g,h,f,y),e.addFrameComponent("deminimizeButton",v,h,f,y);var C=t.buildImageButtonAppearance(m);C.borderColorDefault="#c6c6c6",C.borderColorFocused="#67b657",C.borderColorHovered=C.borderColorFocused,C.borderColorPressed="#00af38",C.backgroundColorDefault="#d0d0d0",C.backgroundColorFocused="#34ca49",C.backgroundColorHovered=C.backgroundColorFocused,C.backgroundColorPressed=C.backgroundColorDefault,C.imageDefault=c,C.imageHovered=l,C.imagePressed=l,C.imageFocused=c;var B=t.buildButton(C),E=t.buildImageButtonAppearance(m);E.borderColorDefault="#c6c6c6",E.borderColorFocused="#67b657",E.borderColorHovered=E.borderColorFocused,E.borderColorPressed="#00af38",E.backgroundColorDefault="#d0d0d0",E.backgroundColorFocused="#34ca49",E.backgroundColorHovered=E.backgroundColorFocused,E.backgroundColorPressed=E.backgroundColorDefault,E.imageDefault=c,E.imageHovered=s,E.imagePressed=s,E.imageFocused=c;var w=t.buildButton(E);w.style.display="none";h=48,f=-19,y="LEFT_TOP";e.addFrameComponent("dezoomButton",w,h,f,y),e.addFrameComponent("zoomButton",B,h,f,y)},e}},function(e,t,r){var n=r(0),o=r(23);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-yosemite-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-yosemite-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n",""]),e.exports=t},function(e,t,r){r(25),e.exports.getStyle=function(e){return e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#9b9a9b",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="30px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="solid 1px #aaaaaa",e.titleBarBorderBottomFocused="solid 1px #1883d7",e.frameBorderRadius="0px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#1883d7",e.frameBorderStyle="solid",e.frameBoxShadow=null,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-redstone-focused",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-redstone-default",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=45,r.height=28,r.borderRadius=0,r.borderWidth=0,r.borderColorDefault="#c6c6c6",r.borderColorFocused="#fc615c",r.borderColorHovered=r.borderColorFocused,r.borderColorPressed="#e64842",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#e81123",r.backgroundColorPressed="#f1707a",r.caption="╳",r.captionColorDefault="#9b9a9b",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=0,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("closeButton",n,o,i,a);var l=t.buildTextButtonAppearance();l.width=45,l.height=28,l.borderRadius=0,l.borderWidth=0,l.borderColorDefault="#c6c6c6",l.borderColorFocused="#fc615c",l.borderColorHovered=l.borderColorFocused,l.borderColorPressed="#e64842",l.borderStyleDefault="solid",l.borderStyleFocused=l.borderStyleDefault,l.borderStyleHovered=l.borderStyleDefault,l.borderStylePressed=l.borderStyleDefault,l.backgroundColorDefault="white",l.backgroundColorFocused="white",l.backgroundColorHovered="#e5e5e5",l.backgroundColorPressed="#cccccc",l.caption="☐",l.captionColorDefault="#9b9a9b",l.captionColorFocused="black",l.captionColorHovered="black",l.captionColorPressed="black",l.captionShiftYpx=1,l.captionFontRatio=.55;var s=t.buildTextButton(l);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("maximizeButton",s,o,i,a);var d=t.buildTextButtonAppearance();d.width=45,d.height=28,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="white",d.backgroundColorFocused="white",d.backgroundColorHovered="#e5e5e5",d.backgroundColorPressed="#cccccc",d.caption="_",d.captionColorDefault="#9b9a9b",d.captionColorFocused="black",d.captionColorHovered="black",d.captionColorPressed="black",d.captionShiftYpx=-2,d.captionFontRatio=.3;var u=t.buildTextButton(d);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("minimizeButton",u,o,i,a);var c=t.buildTextButtonAppearance();c.width=45,c.height=28,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="white",c.backgroundColorFocused="white",c.backgroundColorHovered="#e5e5e5",c.backgroundColorPressed="#cccccc",c.caption="▣",c.captionColorDefault="#9b9a9b",c.captionColorFocused="black",c.captionColorHovered="black",c.captionColorPressed="black",c.captionShiftYpx=1,c.captionFontRatio=.6;var m=t.buildTextButton(c);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";m.style.display="none",e.addFrameComponent("deminimizeButton",m,o,i,a);var p=t.buildTextButtonAppearance();p.width=45,p.height=28,p.borderRadius=0,p.borderWidth=0,p.borderColorDefault="#c6c6c6",p.borderColorFocused="#fc615c",p.borderColorHovered=p.borderColorFocused,p.borderColorPressed="#e64842",p.borderStyleDefault="solid",p.borderStyleFocused=p.borderStyleDefault,p.borderStyleHovered=p.borderStyleDefault,p.borderStylePressed=p.borderStyleDefault,p.backgroundColorDefault="white",p.backgroundColorFocused="white",p.backgroundColorHovered="#e5e5e5",p.backgroundColorPressed="#cccccc",p.caption="❏",p.captionColorDefault="#9b9a9b",p.captionColorFocused="black",p.captionColorHovered="black",p.captionColorPressed="black",p.captionShiftYpx=1,p.captionFontRatio=.55;var h=t.buildTextButton(p);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";h.style.display="none",e.addFrameComponent("restoreButton",h,o,i,a)},e}},function(e,t,r){var n=r(0),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-redstone-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-redstone-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t,r){r(28),e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="5px",e.titleBarColorDefault="white",e.titleBarColorFocused="white",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#aaaaaa",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="white",e.frameComponents=new Array,e.frameHeightAdjust=2,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-popup-focused",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-popup-default",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=1,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#eeeeee",r.backgroundColorPressed="#dddddd",r.backgroundBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",r.caption="✖",r.captionColorDefault="black",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=-6-parseInt(e.titleBarHeight);e.addFrameComponent("closeButton",n,10,o,"RIGHT_TOP")},e}},function(e,t,r){var n=r(0),o=r(29);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-popup-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-popup-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t){e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="0px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="0px",e.titleBarCaptionColorDefault="transparent",e.titleBarCaptionColorFocused="transparent",e.titleBarHeight="0px",e.titleBarColorDefault="transparent",e.titleBarColorFocused="transparent",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="10px",e.frameBorderWidthDefault="0px",e.frameBorderWidthFocused="0px",e.frameBorderColorDefault="transparent",e.frameBorderColorFocused="transparent",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 15px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="transparent",e.frameComponents=[],e.frameHeightAdjust=1,e.captionClor="darkgray",e.pullUpDisabled=!1,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=0,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="transparent",r.backgroundColorFocused="transparent",r.backgroundColorHovered="transparent",r.backgroundColorPressed="transparent",r.backgroundBoxShadow=null,r.caption="✖",r.captionColorDefault=e.captionClor,r.captionColorFocused=e.captionClor,r.captionColorHovered=e.captionClor,r.captionColorPressed=e.captionClor,r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-6,3,"RIGHT_TOP")},e}},function(e,t,r){r(32);var n=r(9);function o(e,t,r){var n,o=e.getPartsBuilder(),a=0;for(var l in n=r?t.titleBar.buttonsOnLeft:t.titleBar.buttons){var s=n[l],d=o.buildTextButtonAppearance();d.fa=s.fa,d.width=t.titleBar.buttonWidth,d.height=t.titleBar.buttonHeight,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="transparent",d.backgroundColorFocused="transparent",d.backgroundColorHovered="transparent",d.backgroundColorPressed="transparent";var u=i(t.titleBar.buttonColor);d.captionColorDefault=t.titleBar.buttonColor,d.captionColorFocused=t.titleBar.buttonColor,d.captionColorHovered=u.hovered,d.captionColorPressed=u.pressed,d.captionShiftYpx=0,d.captionFontRatio=1;var c=o.buildTextButton(d);s.visible?c.style.display="flex":(r?a-=t.titleBar.buttonWidth:a+=t.titleBar.buttonWidth,c.style.display="none");var m,p,h=parseInt(e.titleBarHeight),f=a,y=-h+(h-d.height)/2;m=r?"LEFT_TOP":"RIGHT_TOP",s.childMenuHTML&&((p=document.createElement("div")).id=s.name+"_child_menu",p.innerHTML=s.childMenuHTML,p.style.position="absolute",p.style.width=(s.childMenuWidth?s.childMenuWidth:200)+"px",p.style.top=parseInt(c.style.top,10)+parseInt(c.style.height,10)/2+h/2+"px",p.style.left=c.style.left,p.style.display="none",c.appendChild(p)),e.addFrameComponent(s.name,c,f,y,m,{childMenu:p}),a+=r?t.titleBar.buttonWidth:-t.titleBar.buttonWidth}}function i(e){var t=document.createElement("canvas");t.height=1,t.width=1;var r=t.getContext("2d");r.fillStyle=e,r.fillRect(0,0,1,1);var n=r.getImageData(0,0,1,1).data,o=n[0],i=n[1],a=n[2],l=n[3]/255,s=.85*l;return{src:"rgb("+o+","+i+","+a+","+s+")",hovered:"rgb("+o+","+i+","+a+","+s+")",pressed:"rgb("+o+","+i+","+a+","+.75*l+")"}}e.exports.getStyle=function(e,t){var r={border:{color:"transparent",width:0,radius:6},control:{maximizeWithoutTitleBar:!1,restoreKey:"Escape"},titleBar:{color:"white",background:"black",leftMargin:20,height:30,fontSize:12,buttonWidth:36,buttonHeight:16,buttonColor:"white",buttons:[{fa:"fas fa-times",name:"closeButton",visible:!0},{fa:"far fa-window-maximize",name:"maximizeButton",visible:!0},{fa:"far fa-window-restore",name:"restoreButton",visible:!1},{fa:"far fa-window-minimize",name:"minimizeButton",visible:!0},{fa:"fas fa-caret-up",name:"deminimizeButton",visible:!1}],buttonsOnLeft:[]}},i=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize=i.titleBar.fontSize+"px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=i.titleBar.leftMargin+"px",e.titleBarCaptionColorDefault=i.titleBar.color,e.titleBarCaptionColorFocused=i.titleBar.color,e.titleBarCaptionTextShadow=null,e.titleBarCaptionTextAlign="left",e.titleBarHeight=i.titleBar.height+"px",e.titleBarColorDefault=i.titleBar.background,e.titleBarColorFocused=i.titleBar.background,e.titleBarBorderBottomDefault="solid 0px #aaaaaa",e.titleBarBorderBottomFocused="solid 0px #1883d7",e.frameBorderRadius=i.border.radius+"px",e.frameBorderWidthDefault=i.border.width+"px",e.frameBorderWidthFocused=i.border.width+"px",e.frameBorderColorDefault=i.border.color,e.frameBorderColorFocused=i.border.color,e.frameBorderStyle="solid",e.frameBoxShadow=i.border.shadow,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){o(e,i,!1),o(e,i,!0)},e}},function(e,t,r){var n=r(0),o=r(33);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-material-default {\n background: black;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-material-focused {\n background: black;\n border-top-left-radius: 36px;\n border-top-right-radius: 36px;\n}\n",""]),e.exports=t},function(e,t,r){var n=r(2);e.exports.getPresetWindow=function(e){var t={appearanceName:"yosemite",appearanceParam:{}},r={};e&&(r=e);var o="fullscreen"===r.maximizeButtonBehavior,i="minimize"===r.minimizeButtonBehavior?"minimizeButton":null,a="hide"===r.minimizeButtonBehavior?"minimizeButton":null,l="hide"===r.closeButtonBehavior?"custom-close-button":null,s=r.control,d=l,u=r.closeButtonName;return o&&(t.appearanceParam.titleBar={greenButton:"fullscreen"}),t.appearanceParam.closeButtonName=d||u||"closeButton",t.setupPresetWindow=function(e){var t={maximizeButton:"zoomButton",maximizeParam:{fullScreen:o,restoreKey:"Escape"},demaximizeButton:"dezoomButton",deminimizeButton:"deminimizeButton",minimizeButton:i,hideButtons:[a,l],hideParam:{align:"CENTER_CENTER",duration:300},dehideParam:{duration:300},styleDisplay:"inline",animation:!0,animationDuration:100};s&&n({op:"overwrite-merge",object1:t,object2:s}),e.setControl(t)},t}}])})); \ No newline at end of file diff --git a/public/jsframe.js b/public/jsframe.js index c596665..7f21678 100644 --- a/public/jsframe.js +++ b/public/jsframe.js @@ -1,8 +1,8 @@ /*! jsframe v1.6.0 Copyright (c) 2007-2020 Tom Misawa */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=10)}([function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function l(e){for(var t=-1,r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4)throw Error("Too many arguments. Number of arguments can be specified 4.");this._checkTypeOfOptions(i);var a=null;i&&i.listenerName&&(a=i.listenerName);var l=null;i&&i.once&&(delete i.once,i.callbackOnce=!0,l=function(n){r(n),o.removeEventListener(e,t,null,i)});var s={listenerName:null,success:!0};l?e.addEventListener(t,l,i):e.addEventListener(t,r,i);var d=this.evTargetListenersMap.get(e);d||(d=new Map,this.evTargetListenersMap.set(e,d));var u=d.get(t);if(u||(u=new Map,d.set(t,u)),null!==a){if(u.has(a))throw Error('The listenerName "'.concat(a,'" is already used for the specified event type ').concat(t));u.set(a,{listener:r,onceListener:l,options:i}),s.listenerName=a}else{var c="listener-".concat(this.listenerNum);i||(i={}),i.listenerName=c,u.set(c,{listener:r,onceListener:l,options:i}),s.listenerName=c,this.listenerNum+=1}return s}},{key:"removeEventListener",value:function(e,t,r,n){if(arguments.length<3)throw Error("Three or four arguments are required.");this._checkTypeOfOptions(n);var o=null;n&&n.listenerName&&(o=n.listenerName);var i={success:!1,message:"unknown error"},a=this.evTargetListenersMap.get(e);if(!a)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have any listeners."),i;var l=a.get(t);if(!l)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listeners.'),i;if(o){var s=l.get(o);if(!s)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listener "').concat(o,'"'),i;l.delete(o),s.options&&s.options.callbackOnce?e.removeEventListener(t,s.onceListener,s.options):e.removeEventListener(t,s.listener,s.options),i.success=!0}else if(!o){if(!r)return i.message="options.listenerName is not found",i;var d="listener",u=r,c=this._searchKeyInValueContent(l,d,u);if(c){var m=l.get(c),p=m.onceListener,h=m.options;l.delete(c),p?e.removeEventListener(t,p,h):e.removeEventListener(t,r,h),i.success=!0}else i.success=!1,i.message="Specified listener could not be deleted from DOM element ".concat(e,"(id=").concat(e.id,").\n Since the specified listener is not registered as an event listener,\n it may have been registered outside of event-listener-helper.")}return i}},{key:"getEventListeners",value:function(e,t){return e?t?this._getEventListenersWith2Args(e,t):this._getEventListenersWith1Arg(e):[]}},{key:"_getEventListenersWith1Arg",value:function(e){var t=[],r=this.evTargetListenersMap.get(e);if(!r)return t;var n,a=i(r);try{for(a.s();!(n=a.n()).done;){var l,s=o(n.value,2),d=s[0],u=s[1],c=[],m=i(u.values());try{for(m.s();!(l=m.n()).done;){var p=l.value;c.push(this._getFrozenListenerDef(p))}}catch(e){m.e(e)}finally{m.f()}c.length>0&&t.push({eventType:d,listeners:c})}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"_getEventListenersWith2Args",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=[],n=this.evTargetListenersMap.get(e);if(!n)return r;var o=n.get(t);if(!o)return r;var a,l=i(o.values());try{for(l.s();!(a=l.n()).done;){var s=a.value,d=this._getFrozenListenerDef(s);r.push(d)}}catch(e){l.e(e)}finally{l.f()}return r}},{key:"getEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return null;var o=n.get(t);if(!o)return null;var i=o.get(r),a=this._getFrozenListenerDef(i);return a}},{key:"hasEventListeners",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=this.evTargetListenersMap.get(e);if(!r)return!1;var n=r.get(t);return!(!n||0===n.size)}},{key:"hasEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return!1;var o=n.get(t);if(!o)return!1;var i=o.get(r);return!!i}},{key:"_getFrozenListenerDef",value:function(e){if(!e)return null;var t={},r=null,n=e.options;return n&&(r={},t.options=r,n.capture&&(r.capture=n.capture),n.callbackOnce&&(r.once=n.callbackOnce),n.listenerName&&(r.listenerName=n.listenerName)),t.listener=e.listener,Object.freeze(r),Object.freeze(t),t}},{key:"clearAllEventListeners",value:function(){var e,t=i(this.getAllEventTargets());try{for(t.s();!(e=t.n()).done;){var r=e.value;this.clearEventListeners(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearEventListeners",value:function(e,t){if(!e)throw Error("At least the EventTarget must be specified as an argument");var r=this.getEventListeners(e,t);if(t){if(t){var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.removeEventListener(e,t,null,a.options)}}catch(e){o.e(e)}finally{o.f()}}}else{var l,s=i(r);try{for(s.s();!(l=s.n()).done;){var d,u=l.value,c=u.eventType,m=i(u.listeners);try{for(m.s();!(d=m.n()).done;){var p=d.value.options;this.removeEventListener(e,c,null,p)}}catch(e){m.e(e)}finally{m.f()}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"clearEventListener",value:function(e,t,r){var n=this.getEventListener(e,t,r);n&&n.options&&this.removeEventListener(e,t,null,n.options)}},{key:"getAllEventTargets",value:function(){return Array.from(this.evTargetListenersMap.keys())}},{key:"searchEventListenersByName",value:function(e){var t,r=[],n=i(this.getAllEventTargets());try{for(n.s();!(t=n.n()).done;){var o,a=t.value,l=this.evTargetListenersMap.get(a),s=i(l.keys());try{for(s.s();!(o=s.n()).done;){var d=o.value,u=l.get(d),c=this._getFrozenListenerDef(u.get(e));c&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"_searchKeyInValueContent",value:function(e,t,r){var n,a=i(e);try{for(a.s();!(n=a.n()).done;){var l=o(n.value,2),s=l[0];if(l[1][t]===r)return s}}catch(e){a.e(e)}finally{a.f()}return null}},{key:"_checkTypeOfOptions",value:function(e){if("object"!==n(e)&&void 0!==e)throw"boolean"==typeof e?new Error("Type of boolean is not accepted as the fourth argument you specify.\n If you want to enable useCapture, specify {capture: true} as the fourth parameter instead."):new Error("Type of ".concat(n(e)," is not accepted as the fourth argument you specify.\n If you want to specify options, specify an object like {capture: true, listenerName:'my-listener-01'}."))}},{key:"_cloneJson",value:function(e){return JSON.parse(JSON.stringify(e))}}])&&s(t.prototype,r),e}()}]).default},function(e,t){e.exports=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superConstructor=t,e.superClass=t.prototype}},function(e,t,r){var n=r(2),o=r(8),i=r(18),a=r(19);function l(){}function s(e,t){var r=t.querySelectorAll("img");t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e);for(var n=0;n',o.appendChild(M)}else 0;return o._handleFocusDrawing(),o},e.exports=l},function(e,t){e.exports=function(){this.size=14,this.width=null,this.height=null,this.borderRadius=2,this.borderWidth=0,this.borderColorDefault="#aaaaaa",this.borderColorFocused=this.borderColorDefault,this.borderColorHovered=null,this.borderColorPressed=this.borderColorDefault,this.borderStyleDefault="solid",this.borderStyleFocused=this.borderStyleDefault,this.borderStyleHovered=null,this.borderStylePressed=this.borderStyleDefault,this.backgroundBoxShadow=null,this.backgroundColorDefault="transparent",this.backgroundColorFocused=this.backgroundColorDefault,this.backgroundColorHovered=null,this.backgroundColorPressed=this.backgroundColorDefault,this.caption=null,this.captionColorDefault="white",this.captionColorFocused=this.captionColorDefault,this.captionColorHovered=null,this.captionColorPressed=this.captionColorDefault,this.captionShiftYpx=0,this.captionFontRatio=1}},function(e,t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}e.exports.objectAssign=function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a=0&&(d.htmlElement.style.borderWidth=s.frameBorderWidthDefault,d.htmlElement.style.borderColor=s.frameBorderColorDefault),parseInt(s.frameBorderRadius,10)>=0&&(d.htmlElement.style.borderRadius=s.frameBorderRadius),d.onCloseFrameListener=null}function b(e,t,r,o,i,a){var l=t,s=r,d=o,c=i,m=a.zindex,p=this;this.jsFrame=null,this.control=null,this.minFrameWidth=128,this.minWindowHeight=32,this.eventListenerHelper=new u,this.overrayTransparentScreenEnabled=!1,this.overrayTransparentScreenOnResize=!0,this.titleBarColorFocused=a.titleBarColorFocused,this.titleBarColorDefault=a.titleBarColorDefault,this.titleBarCaptionColorDefault=a.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=a.titleBarCaptionColorFocused,b.superConstructor.call(p,e,l,s,d,c,m,null,a),p.frameBorderColorDefault=a.frameBorderColorDefault,p.frameBorderColorFocused=a.frameBorderColorFocused,p.frameBorderWidthDefault=a.frameBorderWidthDefault,p.frameBorderWidthFocused=a.frameBorderWidthFocused,p.iframe=null,p.ifDelta=0,p.resizable=!0,p.onMouseMoveOnIframe=null,p.onMouseUpOnIframe=null,p._hasFocus=!1,p._hasFocusTime=0,p.htmlElement.typeName="cifwindow";var h="riversun_"+e;p.dframe=document.createElement("div"),p.iframe=document.createElement("iframe"),p.iframe.name=h,p.iframe.id=h,p.iframe.frameBorder="0",p.iframe.zIndex=-1,p.iframe.allowTransparency="true",p.iframe.width=p.canvasNetWidth-p.ifDelta+0,p.iframe.height=p.canvasNetHeight-p.ifDelta+0,p.showTitleBar=a.showTitleBar,p.getFrameInnerBorderRadius=a.getFrameInnerBorderRadius,p.frameBorderRadius=a.frameBorderRadius,p.adjustFrameBorderRadius(),p.useIframe=!1,p.canvas.canvasElement.appendChild(p.iframe),p.canvas.canvasElement.appendChild(p.dframe),this.setUseIframe=function(e){p.useIframe=e,p.iframe.style.visibility="hidden",p.iframe.style.position="absolute",p.iframe.style.left="0px",p.iframe.style.top="0px",p.iframe.style.width="100%",p.iframe.style.height="100%",p.dframe.style.visibility="hidden",p.dframe.style.position="absolute",p.dframe.style.left="0px",p.dframe.style.boxSizing="content-box",p.dframe.style.top="0px",p.dframe.style.width="100%",p.dframe.style.height="100%",p.dframe.style.backgroundColor="white",e?(p.iframe.style.visibility="visible",p.dframe.style.visibility="hidden"):(p.iframe.style.visibility="hidden",p.dframe.style.visibility="visible")},p.setUseIframe(a.useIframe),(p.overrayTransparentScreenEnabled||p.overrayTransparentScreenOnResize)&&(p.transparence=document.createElement("span"),p.transparence.style.position="absolute",p.transparence.style.left="0px",p.transparence.style.top="0px",p.transparence.style.width="0px",p.transparence.style.height="0px",p.transparence.style.zIndex=4,p.transparence.style.borderWidth="0px",p.transparence.style.borderColor="#ff00ee",p.transparence.style.borderStyle="none",p.transparence.style.cursor="default",p.transparence.style.pointerEvents="none",p.canvas.canvasElement.style.backgroundColor=a.frameBackgroundColor,p.canvas.canvasElement.appendChild(p.transparence)),p.eventEmitter=new n}function g(e,t,r,n,o,i){g.superConstructor.call(this,e,t,r,n,o,i);var a=this;document.addEventListener("click",(function(e){for(var t in a.beanList){a.beanList[t].onBodyClicked(e)}}))}function v(e,t,r,n,o,i,a,l){var s=this;v.superConstructor.call(this,e,t,r,n,o,i,a),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=a,s.htmlElement.isRangeLimited=!1,s.htmlElement.style.borderStyle="none",s.htmlElement.style.zIndex=1,l&&(s.htmlElement.style.background=l),s.getWindowType=function(){return"CMarkerWindow"}}function C(e){var t,r=this,n=null;(r.isWindowManagerFixed=!0,e&&0==e.fixed&&(r.isWindowManagerFixed=!1),e&&e.parentElement&&(n=e.parentElement),r.hAlign="left",r.vAlign="top",e&&e.horizontalAlign&&(r.hAlign=e.horizontalAlign),e&&e.verticalAlign&&(r.vAlign=e.verticalAlign),r.pullToRefresh=!1,e&&"boolean"==typeof e.pullToRefresh&&(r.pullToRefresh=e.pullToRefresh),r.touchActionManipulation=!0,e&&"boolean"==typeof e.touchActionManipulation&&(r.touchActionManipulation=e.touchActionManipulation),n)?r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t);if(document.addEventListener("mouseup",o),document.addEventListener("mousemove",i),"ontouchend"in window){document.addEventListener("touchend",(function(e){o.bind(this)(e)}))}if("ontouchmove"in window){r.touchActionManipulation&&r.doEnableTouchActionManipulation(),r.pullToRefresh||r.doDisablePullToRefresh();document.addEventListener("touchmove",(function(e){e.preventDefault(),i.bind(this)(e)}))}function o(e){r.windowManager.windowMouseUp(e)}function i(e){r.windowManager.windowMouseMove(e)}r.windowManager=new g(n,"windowManager_"+r.generateUUID(),0,0,0,0),r.domPartsBuilder=null}p.CBEAN={},p.CBEAN.HTML_ELEMENT="span",p.CBEAN.HTML_ELEMENT_ID_PREFIX="htmlElement_",p.CBEAN.TYPE_NAME="bean",h.prototype.getWindowType=function(){return"CBeanFrame"},h.prototype.setOnMoveListener=function(e){this.onMoveListener=e},h.prototype._onMove=function(e){this.onMoveListener&&this.onMoveListener(e)},h.prototype.setMovable=function(e){var t=this;return e?(t.htmlElement.argX=1,t.htmlElement.argY=1):(t.htmlElement.argX=0,t.htmlElement.argY=0),t.movable=e,t},h.prototype.setParentCanvas=function(e){return this.parentCanvas=e,this.htmlElement.parentCanvas=this.parentCanvas,this},h.prototype.setOnExternalAreaClickedListener=function(e){return this.externalAreaClickedListener=e,this},h.prototype.onBodyClicked=function(e){var t=this,r=e.pageX,n=e.pageY,o=parseInt(t.htmlElement.style.left),i=parseInt(t.htmlElement.style.top),a=parseInt(t.htmlElement.style.width),l=parseInt(t.htmlElement.style.height);om||d<=0||c>p))h=0,f=0;else{h=parseInt(o,10)-parseInt(a,10),f=parseInt(i,10)-parseInt(l,10),t.currentObject.style.left=parseInt(t.currentObject.style.left)+h*t.currentObject.argX+"px",t.currentObject.style.top=parseInt(t.currentObject.style.top)+f*t.currentObject.argY+"px";var y=t.currentObject.parent;y&&y._onMove&&y._onMove()}return t.eventData.deltaX=h,t.eventData.deltaY=f,t.eventData}return null},f.prototype.mouseUp=function(e){this.currentObject=null,this.mouseDownSource=null},f.prototype.pullUp=function(e){var t=this,r=[],n=t.beanList;for(var o in n)r.push(n[o]);var i=n[e];t.enablePullUp&&t.pullUpSort(i,r,t.baseZIndex),t.onTopObject=i},f.prototype.pullUpSort=function(e,t,r){for(var n in e.htmlElement.style.zIndex=t.length+r,t.sort((function(e,t){return-parseInt(e.htmlElement.style.zIndex,10)+parseInt(t.htmlElement.style.zIndex,10)})),t)t[n].htmlElement.style.zIndex=t.length-1-n+r},f.prototype.removeBean=function(e){var t=this.beanList,r=t[e];this.canvasElement.removeChild(r.htmlElement),delete t[e]},f.prototype.addBean=function(e){var t=this,r=t.beanList,n=t.beanIdName,o=t.beanNameId;r[e.id]=e,e.property.name&&(o[e.property.name]=e.id,n[e.id]=e.property.name);var i=0;for(var a in r)i++;e.htmlElement.style.zIndex=i+t.baseZIndex,e.setParentCanvas(t),this.canvasElement.appendChild(e.htmlElement)},p.CFRAME={},p.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",a(y,h),y.prototype.setTitleBarClassName=function(e,t){return e&&(this.titleBarClassNameDefault=e,this.titleBarClassNameFocused=e),t&&(this.titleBarClassNameFocused=t),this},y.prototype.addFrameComponent=function(e){return this.frameComponentMap[e.id]=e,this.canvas.canvasElement.appendChild(e.htmlElement),this},y.prototype.getFrameComponentElement=function(e){return this.frameComponentMap[e]?this.frameComponentMap[e].htmlElement:null},y.prototype.removeFrameComponentById=function(e){var t=this.frameComponentMap[e];this.canvas.canvasElement.removeChild(t.htmlElement),delete this.frameComponentMap[e]},y.prototype.showFrameComponent=function(e,t){var r=this.getFrameComponentElement(e);return r&&(r.style.display=t||"flex"),this},y.prototype.hideFrameComponent=function(e){var t=this.getFrameComponentElement(e);return t&&(t.style.display="none"),this},y.prototype.hideAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;"none"===r.style.display&&(r._alreadyNone=!0),r.style.display="none"}},y.prototype.showAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;r._alreadyNone?r._alreadyNone=null:r.style.display="flex"}},y.prototype.hideFrameComponentChildMenus=function(e){var t=this.frameComponentMap;for(var r in t)if(t.hasOwnProperty(r)){if(e&&e.exceptFrameComponentId&&r===e.exceptFrameComponentId)continue;var n=t[r];n.childMenu&&(n.childMenu.style.display="none")}},y.prototype.setTitle=function(e){var t=this;if(t.title=e,t.showTitleBar){var r=document.createTextNode(e);t.titleBar.firstChild.replaceChild(r,t.titleBar.firstChild.firstChild)}return t},y.prototype.resize=function(e,t,r,n){var o=this,i=parseInt(o.htmlElement.style.left,10),a=parseInt(o.htmlElement.style.top,10),l=parseInt(o.htmlElement.style.width,10),s=parseInt(o.htmlElement.style.height,10);o.htmlElement.style.left=parseInt(i+e,10)+"px",o.htmlElement.style.top=parseInt(a+t,10)+"px",o.htmlElement.style.width=parseInt(l+r,10)+"px",o.htmlElement.style.height=parseInt(s+n,10)+"px";var d=parseInt(o.canvas.canvasElement.style.width,10),u=parseInt(o.canvas.canvasElement.style.height,10);for(var c in o.canvas.canvasElement.style.width=d+r+"px",o.canvas.canvasElement.style.height=u+n+"px",o.showTitleBar&&(o.titleBar.style.width=d+r+"px"),o.canvas.beanList){var m=o.canvas.beanList[c];"cmarkerwindow"==m.htmlElement.typeName&&("RD"==m.htmlElement.usage?(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"DD"==m.htmlElement.usage?(m.htmlElement.style.width=parseInt(m.htmlElement.style.width,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"RR"==m.htmlElement.usage&&(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.height=parseInt(m.htmlElement.style.height,10)+n+"px"))}},y.prototype.canvasMouseDown=function(e){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},y.prototype.mouseUp=function(e){this.canvas.mouseUp(e)},y.prototype.close=function(e){var t=this.parentObject.parentCanvas,r=this.parentObject,n=r.id;r.closeInternally(e,t,n)},y.prototype.closeFrame=function(e){var t=this.parentCanvas;this.closeInternally(e,t,this.windowId)},y.prototype.closeInternally=function(e,t,r){var n=this;t&&(t.removeBean(r),n.modalBackgroundWindowId&&(t.removeBean(n.modalBackgroundWindowId),n.modalBackgroundWindowId=null),n.onCloseFrameListener&&n.onCloseFrameListener(n))},y.prototype.setOnCloseFrameListener=function(e){this.onCloseFrameListener=e},y.prototype.contextMenu=function(){return!1},y.prototype.setTitleBarTextColor=function(e){this.titleBar.style.color=e},y.prototype.setPosition=function(e,t,r){var n=this.getWidth(),o=this.getHeight();return this._setPositionInternally(e,t,r,n,o),this},y.prototype._setPositionInternally=function(e,t,r,n,i){var a=this;r&&(a.anchor=r),r&&o.LEFT_TOP!=r?o.HCENTER_TOP==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=t+"px"):o.RIGHT_TOP==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=t+"px"):o.LEFT_VCENTER==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.HCENTER_VCENTER==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.RIGHT_VCENTER==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.LEFT_BOTTOM==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i+t+"px"):o.HCENTER_BOTTOM==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i+t+"px"):o.RIGHT_BOTTOM==r&&(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i+t+"px"):(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=t+"px")},y.prototype.getPosition=function(){var e,t,r=this,n=r.getWidth(),i=r.getHeight(),a=r.anchor;return a&&o.LEFT_TOP!=a?o.HCENTER_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)):o.RIGHT_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)):o.LEFT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i/2):o.HCENTER_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i/2):o.RIGHT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i/2):o.LEFT_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i):o.HCENTER_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i):o.RIGHT_BOTTOM==a&&(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i):(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)),{x:e,y:t,anchor:a}},y.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},y.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},y.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},y.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},y.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},y.prototype.setSize=function(e,t,r){var n=!0;return r&&(n=!1),this.resize(0,0,e-this.getWidth(),t-this.getHeight(),n),this},y.prototype.getWindowId=function(){return this.windowId},y.prototype.getName=function(){return this.property.name},y.prototype.setName=function(e){this.property.name=e},a(b,y),b.prototype.getFrameView=function(){return this.dframe},b.prototype.setHTML=function(e){this.dframe.innerHTML=e},b.prototype.$=function(e){return this.useIframe?this.iframe.contentWindow.document.querySelector(e):this.dframe.querySelector(e)},b.prototype.on=function(e,t,r){var n=this,o=n.getFrameComponentElement(e);o&&n.eventListenerHelper.addEventListener(o,t,(function(o){r(n,o,{type:"frameComponent",id:e,eventType:t})}),{listenerName:"frame-component-listener"}),"frame"!==e&&"window"!==e||("move"!==t||n.eventEmitter.hasListenerFuncs("move")||n.setOnMoveListener((function(e){n.eventEmitter.emit("move",n._getCurrentSizePos())})),n.eventEmitter.on(t,r));var i=n.$(e);if(i&&(n.eventListenerHelper.hasEventListener(i,t,"frame-dom-listener")&&n.eventListenerHelper.removeEventListener(i,t,null,{listenerName:"frame-dom-listener"}),n.eventListenerHelper.addEventListener(i,t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}),{listenerName:"frame-dom-listener"})),!i){var a=n.canvas.canvasElement.querySelector(e);a&&a.addEventListener(t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}))}},b.prototype.adjustFrameBorderRadius=function(){var e=this;if(parseInt(e.frameBorderRadius,10)>0){var t=e.getFrameInnerBorderRadius(e,e._hasFocus),r=t.frameAppearance,n=t.innerBorderRadius,o=parseInt(r.titleBarHeight,10);e.showTitleBar?(e.canvas.canvasElement.style.borderBottomRightRadius=n,e.canvas.canvasElement.style.borderBottomLeftRadius=n,e.iframe.style.borderBottomRightRadius=n,e.iframe.style.borderBottomLeftRadius=n,e.titleBar.style.borderTopLeftRadius=n,e.titleBar.style.borderTopRightRadius=n):(e.canvas.canvasElement.style.borderRadius=n,e.iframe.style.borderRadius=n),e.dframe&&(0===o&&(e.dframe.style.borderTopRightRadius||(e.dframe.style.borderTopRightRadius=n),e.dframe.style.borderTopLeftRadius||(e.dframe.style.borderTopLeftRadius=n)),e.dframe.style.borderBottomRightRadius=n,e.dframe.style.borderBottomLeftRadius=n)}},b.prototype.handleReleasingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!1,t.titleBar.className=t.titleBarClassNameDefault,t.titleBarColorDefault&&(t.titleBar.style.background=t.titleBarColorDefault),t.titleBar.style.color=t.titleBarCaptionColorDefault,t.frameBorderColorDefault&&(t.htmlElement.style.borderColor=t.frameBorderColorDefault),t.frameBorderWidthDefault&&(t.htmlElement.style.borderWidth=t.frameBorderWidthDefault,t.adjustFrameBorderRadius()),"cifwindow"==t.htmlElement.typeName&&t.overrayTransparentScreenEnabled&&(t.transparence.style.width=parseInt(t.iframe.width,10)+"px",t.transparence.style.height=parseInt(t.iframe.height,10)+"px"),t.frameComponentMap){t.frameComponentMap[n].handleReleasingFocus()}return t.titleBarBorderBottomDefault&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomDefault),r&&t.eventEmitter.emit("blur",{target:t}),t},b.prototype.handleTakingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!0,t._hasFocus=Date.now(),t.overrayTransparentScreenEnabled&&(t.transparence.style.width="0px",t.transparence.style.height="0px"),t.titleBar.className=t.titleBarClassNameFocused,t.titleBarColorFocused&&(t.titleBar.style.background=t.titleBarColorFocused),t.titleBar.style.color=t.titleBarCaptionColorFocused,t.frameBorderColorFocused&&(t.htmlElement.style.borderColor=t.frameBorderColorFocused),t.frameBorderWidthFocused&&(t.htmlElement.style.borderWidth=t.frameBorderWidthFocused,t.adjustFrameBorderRadius()),t.titleBarBorderBottomFocused&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomFocused),t.frameComponentMap){t.frameComponentMap[n].handleTakingFocus()}return r||t.eventEmitter.emit("focus",{target:t}),t},y.prototype.show=function(e){return this.htmlElement.style.display="flex",e&&0==e.requestFocus||this.requestFocus(),this},y.prototype.showModal=function(e){var t=this,r=new l;r.showTitleBar=!0,r.showCloseButton=!1,r.frameBorderRadius="0px",r.frameBorderStyle="none",r.frameBorderWidthDefault="0px",r.frameBorderWidthFocused="0px",r.frameBoxShadow=null,r.frameBackgroundColor="transparent",r.frameComponents=[],r.frameHeightAdjust=0,r.titleBarHeight="0px",r.titleBarBorderBottomFocused=null,r.titleBarCaptionLeftMargin="0px",r.onInitialize=function(){},r.pullUpDisabled=!0;var n=t.parentCanvas,o=p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX+t.id,i=new b(o,0,0,1,1,r);i.setSize(window.innerWidth,window.innerHeight,!0),i.setResizable(!1),window.addEventListener("resize",(function(){i.setSize(window.innerWidth,window.innerHeight,!0)})),t.modalBackgroundWindowId=o,i.hide(),n.addWindow(i),i.setTitle("").getFrameView().innerHTML='
',i.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",i.show(),t.show(),e&&t.setOnCloseFrameListener(e)},b.prototype.hide=function(){return this.htmlElement.style.display="none",this},b.prototype.onmouseDown=function(e){document.body.ondrag=function(){return!1},this.decorator=y.prototype.onmouseDown,this.decorator(e);var t=this.parent,r=this.parentCanvas;for(var n in r.beanList){var o=r.beanList[n];n==t.getWindowId()||o.handleReleasingFocus()}t.handleTakingFocus()},b.prototype.mouseUp=function(e){(this.overrayTransparentScreenEnabled||this.overrayTransparentScreenOnResize)&&(this.parentCanvas.onTopObject==this?(this.transparence.style.width="0px",this.transparence.style.height="0px"):this.overrayTransparentScreenEnabled&&(this.transparence.style.width=parseInt(this.iframe.width)+"px",this.transparence.style.height=parseInt(this.iframe.height)+"px")),this.decorator=y.prototype.mouseUp,this.decorator(e),document.body.ondrag=null,document.body.onselectstart=null,this.transparence.style.pointerEvents="none"},b.prototype.setMinFrameSize=function(e,t){this.minFrameWidth=e,this.minWindowHeight=t},b.prototype.resize=function(e,t,r,n,o){if(!this.resizable&&o)return null;var i=this.getSize(),a=parseInt(this.htmlElement.style.left,10),l=parseInt(this.htmlElement.style.top,10),s=parseInt(this.htmlElement.style.width,10),d=parseInt(this.htmlElement.style.height,10);o&&s+r'+l+""});s||c.hideFrameComponent("closeButton");var m=window.innerWidth/2;"right"==t.hAlign&&(m=-m),"bottom"==t.vAlign&&(i-=window.innerHeight,a-=window.innerHeight),t.createAnimator().set(c).setDuration(300).fromPosition(m,i,"CENTER_CENTER").toPosition(m,a,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,!1).then((function(e){return e.setDuration(300).fromPosition(m,a,"CENTER_CENTER").toPosition(m,i,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,!1)})).then((function(e){e.get().closeFrame()}))}},Object.freeze(p),e.exports=C},function(e,t,r){var n=r(0),o=r(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-titlebar-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-titlebar-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-modal-window-background {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n widdth: 100%\n}",""]),e.exports=t},function(e,t,r){ +e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=a(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4)throw Error("Too many arguments. Number of arguments can be specified 4.");this._checkTypeOfOptions(i);var a=null;i&&i.listenerName&&(a=i.listenerName);var l=null;i&&i.once&&(delete i.once,i.callbackOnce=!0,l=function(n){r(n),o.removeEventListener(e,t,null,i)});var s={listenerName:null,success:!0};l?e.addEventListener(t,l,i):e.addEventListener(t,r,i);var d=this.evTargetListenersMap.get(e);d||(d=new Map,this.evTargetListenersMap.set(e,d));var u=d.get(t);if(u||(u=new Map,d.set(t,u)),null!==a){if(u.has(a))throw Error('The listenerName "'.concat(a,'" is already used for the specified event type ').concat(t));u.set(a,{listener:r,onceListener:l,options:i}),s.listenerName=a}else{var c="listener-".concat(this.listenerNum);i||(i={}),i.listenerName=c,u.set(c,{listener:r,onceListener:l,options:i}),s.listenerName=c,this.listenerNum+=1}return s}},{key:"removeEventListener",value:function(e,t,r,n){if(arguments.length<3)throw Error("Three or four arguments are required.");this._checkTypeOfOptions(n);var o=null;n&&n.listenerName&&(o=n.listenerName);var i={success:!1,message:"unknown error"},a=this.evTargetListenersMap.get(e);if(!a)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have any listeners."),i;var l=a.get(t);if(!l)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listeners.'),i;if(o){var s=l.get(o);if(!s)return i.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listener "').concat(o,'"'),i;l.delete(o),s.options&&s.options.callbackOnce?e.removeEventListener(t,s.onceListener,s.options):e.removeEventListener(t,s.listener,s.options),i.success=!0}else if(!o){if(!r)return i.message="options.listenerName is not found",i;var d="listener",u=r,c=this._searchKeyInValueContent(l,d,u);if(c){var m=l.get(c),p=m.onceListener,h=m.options;l.delete(c),p?e.removeEventListener(t,p,h):e.removeEventListener(t,r,h),i.success=!0}else i.success=!1,i.message="Specified listener could not be deleted from DOM element ".concat(e,"(id=").concat(e.id,").\n Since the specified listener is not registered as an event listener,\n it may have been registered outside of event-listener-helper.")}return i}},{key:"getEventListeners",value:function(e,t){return e?t?this._getEventListenersWith2Args(e,t):this._getEventListenersWith1Arg(e):[]}},{key:"_getEventListenersWith1Arg",value:function(e){var t=[],r=this.evTargetListenersMap.get(e);if(!r)return t;var n,a=i(r);try{for(a.s();!(n=a.n()).done;){var l,s=o(n.value,2),d=s[0],u=s[1],c=[],m=i(u.values());try{for(m.s();!(l=m.n()).done;){var p=l.value;c.push(this._getFrozenListenerDef(p))}}catch(e){m.e(e)}finally{m.f()}c.length>0&&t.push({eventType:d,listeners:c})}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"_getEventListenersWith2Args",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=[],n=this.evTargetListenersMap.get(e);if(!n)return r;var o=n.get(t);if(!o)return r;var a,l=i(o.values());try{for(l.s();!(a=l.n()).done;){var s=a.value,d=this._getFrozenListenerDef(s);r.push(d)}}catch(e){l.e(e)}finally{l.f()}return r}},{key:"getEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return null;var o=n.get(t);if(!o)return null;var i=o.get(r),a=this._getFrozenListenerDef(i);return a}},{key:"hasEventListeners",value:function(e,t){if(2!==arguments.length)throw Error("Only two arguments can be specified");var r=this.evTargetListenersMap.get(e);if(!r)return!1;var n=r.get(t);return!(!n||0===n.size)}},{key:"hasEventListener",value:function(e,t,r){if(3!==arguments.length)throw Error("Only 3 arguments can be specified");var n=this.evTargetListenersMap.get(e);if(!n)return!1;var o=n.get(t);if(!o)return!1;var i=o.get(r);return!!i}},{key:"_getFrozenListenerDef",value:function(e){if(!e)return null;var t={},r=null,n=e.options;return n&&(r={},t.options=r,n.capture&&(r.capture=n.capture),n.callbackOnce&&(r.once=n.callbackOnce),n.listenerName&&(r.listenerName=n.listenerName)),t.listener=e.listener,Object.freeze(r),Object.freeze(t),t}},{key:"clearAllEventListeners",value:function(){var e,t=i(this.getAllEventTargets());try{for(t.s();!(e=t.n()).done;){var r=e.value;this.clearEventListeners(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"clearEventListeners",value:function(e,t){if(!e)throw Error("At least the EventTarget must be specified as an argument");var r=this.getEventListeners(e,t);if(t){if(t){var n,o=i(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.removeEventListener(e,t,null,a.options)}}catch(e){o.e(e)}finally{o.f()}}}else{var l,s=i(r);try{for(s.s();!(l=s.n()).done;){var d,u=l.value,c=u.eventType,m=i(u.listeners);try{for(m.s();!(d=m.n()).done;){var p=d.value.options;this.removeEventListener(e,c,null,p)}}catch(e){m.e(e)}finally{m.f()}}}catch(e){s.e(e)}finally{s.f()}}}},{key:"clearEventListener",value:function(e,t,r){var n=this.getEventListener(e,t,r);n&&n.options&&this.removeEventListener(e,t,null,n.options)}},{key:"getAllEventTargets",value:function(){return Array.from(this.evTargetListenersMap.keys())}},{key:"searchEventListenersByName",value:function(e){var t,r=[],n=i(this.getAllEventTargets());try{for(n.s();!(t=n.n()).done;){var o,a=t.value,l=this.evTargetListenersMap.get(a),s=i(l.keys());try{for(s.s();!(o=s.n()).done;){var d=o.value,u=l.get(d),c=this._getFrozenListenerDef(u.get(e));c&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"_searchKeyInValueContent",value:function(e,t,r){var n,a=i(e);try{for(a.s();!(n=a.n()).done;){var l=o(n.value,2),s=l[0];if(l[1][t]===r)return s}}catch(e){a.e(e)}finally{a.f()}return null}},{key:"_checkTypeOfOptions",value:function(e){if("object"!==n(e)&&void 0!==e)throw"boolean"==typeof e?new Error("Type of boolean is not accepted as the fourth argument you specify.\n If you want to enable useCapture, specify {capture: true} as the fourth parameter instead."):new Error("Type of ".concat(n(e)," is not accepted as the fourth argument you specify.\n If you want to specify options, specify an object like {capture: true, listenerName:'my-listener-01'}."))}},{key:"_cloneJson",value:function(e){return JSON.parse(JSON.stringify(e))}}])&&s(t.prototype,r),e}()}]).default},function(e,t){e.exports=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superConstructor=t,e.superClass=t.prototype}},function(e,t,r){var n=r(2),o=r(8),i=r(18),a=r(19);function l(){}function s(e,t){var r=t.querySelectorAll("img");t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e);for(var n=0;n',o.appendChild(M)}else 0;return o._handleFocusDrawing(),o},e.exports=l},function(e,t){e.exports=function(){this.size=14,this.width=null,this.height=null,this.borderRadius=2,this.borderWidth=0,this.borderColorDefault="#aaaaaa",this.borderColorFocused=this.borderColorDefault,this.borderColorHovered=null,this.borderColorPressed=this.borderColorDefault,this.borderStyleDefault="solid",this.borderStyleFocused=this.borderStyleDefault,this.borderStyleHovered=null,this.borderStylePressed=this.borderStyleDefault,this.backgroundBoxShadow=null,this.backgroundColorDefault="transparent",this.backgroundColorFocused=this.backgroundColorDefault,this.backgroundColorHovered=null,this.backgroundColorPressed=this.backgroundColorDefault,this.caption=null,this.captionColorDefault="white",this.captionColorFocused=this.captionColorDefault,this.captionColorHovered=null,this.captionColorPressed=this.captionColorDefault,this.captionShiftYpx=0,this.captionFontRatio=1}},function(e,t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}e.exports.objectAssign=function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a=0&&(d.htmlElement.style.borderWidth=s.frameBorderWidthDefault,d.htmlElement.style.borderColor=s.frameBorderColorDefault),parseInt(s.frameBorderRadius,10)>=0&&(d.htmlElement.style.borderRadius=s.frameBorderRadius),d.onCloseFrameListener=null}function b(e,t,r,o,i,a){var l=t,s=r,d=o,c=i,m=a.zindex,p=this;this.jsFrame=null,this.control=null,this.minFrameWidth=128,this.minWindowHeight=32,this.eventListenerHelper=new u,this.overrayTransparentScreenEnabled=!1,this.overrayTransparentScreenOnResize=!0,this.titleBarColorFocused=a.titleBarColorFocused,this.titleBarColorDefault=a.titleBarColorDefault,this.titleBarCaptionColorDefault=a.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=a.titleBarCaptionColorFocused,b.superConstructor.call(p,e,l,s,d,c,m,null,a),p.frameBorderColorDefault=a.frameBorderColorDefault,p.frameBorderColorFocused=a.frameBorderColorFocused,p.frameBorderWidthDefault=a.frameBorderWidthDefault,p.frameBorderWidthFocused=a.frameBorderWidthFocused,p.iframe=null,p.ifDelta=0,p.resizable=!0,p.onMouseMoveOnIframe=null,p.onMouseUpOnIframe=null,p._hasFocus=!1,p._hasFocusTime=0,p.htmlElement.typeName="cifwindow";var h="riversun_"+e;p.dframe=document.createElement("div"),p.iframe=document.createElement("iframe"),p.iframe.name=h,p.iframe.id=h,p.iframe.frameBorder="0",p.iframe.zIndex=-1,p.iframe.allowTransparency="true",p.iframe.width=p.canvasNetWidth-p.ifDelta+0,p.iframe.height=p.canvasNetHeight-p.ifDelta+0,p.showTitleBar=a.showTitleBar,p.getFrameInnerBorderRadius=a.getFrameInnerBorderRadius,p.frameBorderRadius=a.frameBorderRadius,p.adjustFrameBorderRadius(),p.useIframe=!1,p.canvas.canvasElement.appendChild(p.iframe),p.canvas.canvasElement.appendChild(p.dframe),this.setUseIframe=function(e){p.useIframe=e,p.iframe.style.visibility="hidden",p.iframe.style.position="absolute",p.iframe.style.left="0px",p.iframe.style.top="0px",p.iframe.style.width="100%",p.iframe.style.height="100%",p.dframe.style.visibility="hidden",p.dframe.style.position="absolute",p.dframe.style.left="0px",p.dframe.style.boxSizing="content-box",p.dframe.style.top="0px",p.dframe.style.width="100%",p.dframe.style.height="100%",p.dframe.style.backgroundColor="white",e?(p.iframe.style.visibility="visible",p.dframe.style.visibility="hidden"):(p.iframe.style.visibility="hidden",p.dframe.style.visibility="visible")},p.setUseIframe(a.useIframe),(p.overrayTransparentScreenEnabled||p.overrayTransparentScreenOnResize)&&(p.transparence=document.createElement("span"),p.transparence.style.position="absolute",p.transparence.style.left="0px",p.transparence.style.top="0px",p.transparence.style.width="0px",p.transparence.style.height="0px",p.transparence.style.zIndex=4,p.transparence.style.borderWidth="0px",p.transparence.style.borderColor="#ff00ee",p.transparence.style.borderStyle="none",p.transparence.style.cursor="default",p.transparence.style.pointerEvents="none",p.canvas.canvasElement.style.backgroundColor=a.frameBackgroundColor,p.canvas.canvasElement.appendChild(p.transparence)),p.eventEmitter=new n}function g(e,t,r,n,o,i){g.superConstructor.call(this,e,t,r,n,o,i);var a=this;document.addEventListener("click",(function(e){for(var t in a.beanList){a.beanList[t].onBodyClicked(e)}}))}function v(e,t,r,n,o,i,a,l){var s=this;v.superConstructor.call(this,e,t,r,n,o,i,a),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=a,s.htmlElement.isRangeLimited=!1,s.htmlElement.style.borderStyle="none",s.htmlElement.style.zIndex=1,l&&(s.htmlElement.style.background=l),s.getWindowType=function(){return"CMarkerWindow"}}function C(e){var t,r=this,n=null;(r.isWindowManagerFixed=!0,e&&0==e.fixed&&(r.isWindowManagerFixed=!1),e&&e.parentElement&&(n=e.parentElement),r.hAlign="left",r.vAlign="top",e&&e.horizontalAlign&&(r.hAlign=e.horizontalAlign),e&&e.verticalAlign&&(r.vAlign=e.verticalAlign),r.pullToRefresh=!1,e&&"boolean"==typeof e.pullToRefresh&&(r.pullToRefresh=e.pullToRefresh),r.touchActionManipulation=!0,e&&"boolean"==typeof e.touchActionManipulation&&(r.touchActionManipulation=e.touchActionManipulation),n)?r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),n.appendChild(t)):r.isWindowManagerFixed?((t=document.createElement("div")).id="jsFrame_fixed_"+r.generateUUID(),t.setAttribute("style","position:fixed;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t):((t=document.createElement("div")).id="jsFrame_absolute_"+r.generateUUID(),t.setAttribute("style","position:absolute;"+r.hAlign+":0px;"+r.vAlign+":0px;margin:0px;padding:0px;"),document.body.appendChild(t),n=t);if(document.addEventListener("mouseup",o),document.addEventListener("mousemove",i),"ontouchend"in window){document.addEventListener("touchend",(function(e){o.bind(this)(e)}))}if("ontouchmove"in window){r.touchActionManipulation&&r.doEnableTouchActionManipulation(),r.pullToRefresh||r.doDisablePullToRefresh();document.addEventListener("touchmove",(function(e){e.preventDefault(),i.bind(this)(e)}))}function o(e){r.windowManager.windowMouseUp(e)}function i(e){r.windowManager.windowMouseMove(e)}r.windowManager=new g(n,"windowManager_"+r.generateUUID(),0,0,0,0),r.domPartsBuilder=null}p.CBEAN={},p.CBEAN.HTML_ELEMENT="span",p.CBEAN.HTML_ELEMENT_ID_PREFIX="htmlElement_",p.CBEAN.TYPE_NAME="bean",h.prototype.getWindowType=function(){return"CBeanFrame"},h.prototype.setOnMoveListener=function(e){this.onMoveListener=e},h.prototype._onMove=function(e){this.onMoveListener&&this.onMoveListener(e)},h.prototype.setMovable=function(e){var t=this;return e?(t.htmlElement.argX=1,t.htmlElement.argY=1):(t.htmlElement.argX=0,t.htmlElement.argY=0),t.movable=e,t},h.prototype.setParentCanvas=function(e){return this.parentCanvas=e,this.htmlElement.parentCanvas=this.parentCanvas,this},h.prototype.setOnExternalAreaClickedListener=function(e){return this.externalAreaClickedListener=e,this},h.prototype.onBodyClicked=function(e){var t=this,r=e.pageX,n=e.pageY,o=parseInt(t.htmlElement.style.left),i=parseInt(t.htmlElement.style.top),a=parseInt(t.htmlElement.style.width),l=parseInt(t.htmlElement.style.height);om||d<=0||c>p))h=0,f=0;else{h=parseInt(o,10)-parseInt(a,10),f=parseInt(i,10)-parseInt(l,10),t.currentObject.style.left=parseInt(t.currentObject.style.left)+h*t.currentObject.argX+"px",t.currentObject.style.top=parseInt(t.currentObject.style.top)+f*t.currentObject.argY+"px";var y=t.currentObject.parent;y&&y._onMove&&y._onMove()}return t.eventData.deltaX=h,t.eventData.deltaY=f,t.eventData}return null},f.prototype.mouseUp=function(e){this.currentObject=null,this.mouseDownSource=null},f.prototype.pullUp=function(e){var t=this,r=[],n=t.beanList;for(var o in n)r.push(n[o]);var i=n[e];t.enablePullUp&&t.pullUpSort(i,r,t.baseZIndex),t.onTopObject=i},f.prototype.pullUpSort=function(e,t,r){for(var n in e.htmlElement.style.zIndex=t.length+r,t.sort((function(e,t){return-parseInt(e.htmlElement.style.zIndex,10)+parseInt(t.htmlElement.style.zIndex,10)})),t)t[n].htmlElement.style.zIndex=t.length-1-n+r},f.prototype.removeBean=function(e){var t=this.beanList,r=t[e];this.canvasElement.removeChild(r.htmlElement),delete t[e]},f.prototype.addBean=function(e){var t=this,r=t.beanList,n=t.beanIdName,o=t.beanNameId;r[e.id]=e,e.property.name&&(o[e.property.name]=e.id,n[e.id]=e.property.name);var i=0;for(var a in r)i++;e.htmlElement.style.zIndex=i+t.baseZIndex,e.setParentCanvas(t),this.canvasElement.appendChild(e.htmlElement)},p.CFRAME={},p.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",a(y,h),y.prototype.setTitleBarClassName=function(e,t){return e&&(this.titleBarClassNameDefault=e,this.titleBarClassNameFocused=e),t&&(this.titleBarClassNameFocused=t),this},y.prototype.addFrameComponent=function(e){return this.frameComponentMap[e.id]=e,this.canvas.canvasElement.appendChild(e.htmlElement),this},y.prototype.getFrameComponentElement=function(e){return this.frameComponentMap[e]?this.frameComponentMap[e].htmlElement:null},y.prototype.removeFrameComponentById=function(e){var t=this.frameComponentMap[e];this.canvas.canvasElement.removeChild(t.htmlElement),delete this.frameComponentMap[e]},y.prototype.showFrameComponent=function(e,t){var r=this.getFrameComponentElement(e);return r&&(r.style.display=t||"flex"),this},y.prototype.hideFrameComponent=function(e){var t=this.getFrameComponentElement(e);return t&&(t.style.display="none"),this},y.prototype.hideAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;"none"===r.style.display&&(r._alreadyNone=!0),r.style.display="none"}},y.prototype.showAllVisibleFrameComponents=function(){var e=this.frameComponentMap;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t].htmlElement;r._alreadyNone?r._alreadyNone=null:r.style.display="flex"}},y.prototype.hideFrameComponentChildMenus=function(e){var t=this.frameComponentMap;for(var r in t)if(t.hasOwnProperty(r)){if(e&&e.exceptFrameComponentId&&r===e.exceptFrameComponentId)continue;var n=t[r];n.childMenu&&(n.childMenu.style.display="none")}},y.prototype.setTitle=function(e){var t=this;if(t.title=e,t.showTitleBar){var r=document.createTextNode(e);t.titleBar.firstChild.replaceChild(r,t.titleBar.firstChild.firstChild)}return t},y.prototype.resize=function(e,t,r,n){var o=this,i=parseInt(o.htmlElement.style.left,10),a=parseInt(o.htmlElement.style.top,10),l=parseInt(o.htmlElement.style.width,10),s=parseInt(o.htmlElement.style.height,10);o.htmlElement.style.left=parseInt(i+e,10)+"px",o.htmlElement.style.top=parseInt(a+t,10)+"px",o.htmlElement.style.width=parseInt(l+r,10)+"px",o.htmlElement.style.height=parseInt(s+n,10)+"px";var d=parseInt(o.canvas.canvasElement.style.width,10),u=parseInt(o.canvas.canvasElement.style.height,10);for(var c in o.canvas.canvasElement.style.width=d+r+"px",o.canvas.canvasElement.style.height=u+n+"px",o.showTitleBar&&(o.titleBar.style.width=d+r+"px"),o.canvas.beanList){var m=o.canvas.beanList[c];"cmarkerwindow"==m.htmlElement.typeName&&("RD"==m.htmlElement.usage?(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"DD"==m.htmlElement.usage?(m.htmlElement.style.width=parseInt(m.htmlElement.style.width,10)+r+"px",m.htmlElement.style.top=parseInt(m.htmlElement.style.top,10)+n+"px"):"RR"==m.htmlElement.usage&&(m.htmlElement.style.left=parseInt(m.htmlElement.style.left,10)+r+"px",m.htmlElement.style.height=parseInt(m.htmlElement.style.height,10)+n+"px"))}},y.prototype.canvasMouseDown=function(e){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},y.prototype.mouseUp=function(e){this.canvas.mouseUp(e)},y.prototype.close=function(e){var t=this.parentObject.parentCanvas,r=this.parentObject,n=r.id;r.closeInternally(e,t,n)},y.prototype.closeFrame=function(e){var t=this.parentCanvas;this.closeInternally(e,t,this.windowId)},y.prototype.closeInternally=function(e,t,r){var n=this;t&&(t.removeBean(r),n.modalBackgroundWindowId&&(t.removeBean(n.modalBackgroundWindowId),n.modalBackgroundWindowId=null),n.onCloseFrameListener&&n.onCloseFrameListener(n))},y.prototype.setOnCloseFrameListener=function(e){this.onCloseFrameListener=e},y.prototype.contextMenu=function(){return!1},y.prototype.setTitleBarTextColor=function(e){this.titleBar.style.color=e},y.prototype.setPosition=function(e,t,r){var n=this.getWidth(),o=this.getHeight();return this._setPositionInternally(e,t,r,n,o),this},y.prototype._setPositionInternally=function(e,t,r,n,i){var a=this;r&&(a.anchor=r),r&&o.LEFT_TOP!=r?o.HCENTER_TOP==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=t+"px"):o.RIGHT_TOP==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=t+"px"):o.LEFT_VCENTER==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.HCENTER_VCENTER==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.RIGHT_VCENTER==r?(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i/2+t+"px"):o.LEFT_BOTTOM==r?(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=-i+t+"px"):o.HCENTER_BOTTOM==r?(a.htmlElement.style.left=-n/2+e+"px",a.htmlElement.style.top=-i+t+"px"):o.RIGHT_BOTTOM==r&&(a.htmlElement.style.left=-n+e+"px",a.htmlElement.style.top=-i+t+"px"):(a.htmlElement.style.left=e+"px",a.htmlElement.style.top=t+"px")},y.prototype.getPosition=function(){var e,t,r=this,n=r.getWidth(),i=r.getHeight(),a=r.anchor;return a&&o.LEFT_TOP!=a?o.HCENTER_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)):o.RIGHT_TOP==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)):o.LEFT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i/2):o.HCENTER_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i/2):o.RIGHT_VCENTER==a?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i/2):o.LEFT_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+i):o.HCENTER_BOTTOM==a?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+i):o.RIGHT_BOTTOM==a&&(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+i):(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)),{x:e,y:t,anchor:a}},y.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},y.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},y.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},y.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},y.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},y.prototype.setSize=function(e,t,r){var n=!0;return r&&(n=!1),this.resize(0,0,e-this.getWidth(),t-this.getHeight(),n),this},y.prototype.getWindowId=function(){return this.windowId},y.prototype.getName=function(){return this.property.name},y.prototype.setName=function(e){this.property.name=e},a(b,y),b.prototype.getFrameView=function(){return this.dframe},b.prototype.setHTML=function(e){this.dframe.innerHTML=e},b.prototype.$=function(e){return this.useIframe?this.iframe.contentWindow.document.querySelector(e):this.dframe.querySelector(e)},b.prototype.on=function(e,t,r){var n=this,o=n.getFrameComponentElement(e);o&&n.eventListenerHelper.addEventListener(o,t,(function(o){r(n,o,{type:"frameComponent",id:e,eventType:t})}),{listenerName:"frame-component-listener"}),"frame"!==e&&"window"!==e||("move"!==t||n.eventEmitter.hasListenerFuncs("move")||n.setOnMoveListener((function(e){n.eventEmitter.emit("move",n._getCurrentSizePos())})),n.eventEmitter.on(t,r));var i=n.$(e);if(i&&(n.eventListenerHelper.hasEventListener(i,t,"frame-dom-listener")&&n.eventListenerHelper.removeEventListener(i,t,null,{listenerName:"frame-dom-listener"}),n.eventListenerHelper.addEventListener(i,t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}),{listenerName:"frame-dom-listener"})),!i){var a=n.canvas.canvasElement.querySelector(e);a&&a.addEventListener(t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}))}},b.prototype.adjustFrameBorderRadius=function(){var e=this;if(parseInt(e.frameBorderRadius,10)>0){var t=e.getFrameInnerBorderRadius(e,e._hasFocus),r=t.frameAppearance,n=t.innerBorderRadius,o=parseInt(r.titleBarHeight,10);e.showTitleBar?(e.canvas.canvasElement.style.borderBottomRightRadius=n,e.canvas.canvasElement.style.borderBottomLeftRadius=n,e.iframe.style.borderBottomRightRadius=n,e.iframe.style.borderBottomLeftRadius=n,e.titleBar.style.borderTopLeftRadius=n,e.titleBar.style.borderTopRightRadius=n):(e.canvas.canvasElement.style.borderRadius=n,e.iframe.style.borderRadius=n),e.dframe&&(0===o&&(e.dframe.style.borderTopRightRadius||(e.dframe.style.borderTopRightRadius=n),e.dframe.style.borderTopLeftRadius||(e.dframe.style.borderTopLeftRadius=n)),e.dframe.style.borderBottomRightRadius=n,e.dframe.style.borderBottomLeftRadius=n)}},b.prototype.handleReleasingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!1,t.titleBar.className=t.titleBarClassNameDefault,t.titleBarColorDefault&&(t.titleBar.style.background=t.titleBarColorDefault),t.titleBar.style.color=t.titleBarCaptionColorDefault,t.frameBorderColorDefault&&(t.htmlElement.style.borderColor=t.frameBorderColorDefault),t.frameBorderWidthDefault&&(t.htmlElement.style.borderWidth=t.frameBorderWidthDefault,t.adjustFrameBorderRadius()),"cifwindow"==t.htmlElement.typeName&&t.overrayTransparentScreenEnabled&&(t.transparence.style.width=parseInt(t.iframe.width,10)+"px",t.transparence.style.height=parseInt(t.iframe.height,10)+"px"),t.frameComponentMap){t.frameComponentMap[n].handleReleasingFocus()}return t.titleBarBorderBottomDefault&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomDefault),r&&t.eventEmitter.emit("blur",{target:t}),t},b.prototype.handleTakingFocus=function(e){var t=this,r=t._hasFocus;for(var n in t._hasFocus=!0,t._hasFocus=Date.now(),t.overrayTransparentScreenEnabled&&(t.transparence.style.width="0px",t.transparence.style.height="0px"),t.titleBar.className=t.titleBarClassNameFocused,t.titleBarColorFocused&&(t.titleBar.style.background=t.titleBarColorFocused),t.titleBar.style.color=t.titleBarCaptionColorFocused,t.frameBorderColorFocused&&(t.htmlElement.style.borderColor=t.frameBorderColorFocused),t.frameBorderWidthFocused&&(t.htmlElement.style.borderWidth=t.frameBorderWidthFocused,t.adjustFrameBorderRadius()),t.titleBarBorderBottomFocused&&(t.titleBar.style.borderBottom=t.titleBarBorderBottomFocused),t.frameComponentMap){t.frameComponentMap[n].handleTakingFocus()}return r||t.eventEmitter.emit("focus",{target:t}),t},y.prototype.show=function(e){return this.htmlElement.style.display="flex",e&&0==e.requestFocus||this.requestFocus(),this},y.prototype.showModal=function(e){var t=this,r=new l;r.showTitleBar=!0,r.showCloseButton=!1,r.frameBorderRadius="0px",r.frameBorderStyle="none",r.frameBorderWidthDefault="0px",r.frameBorderWidthFocused="0px",r.frameBoxShadow=null,r.frameBackgroundColor="transparent",r.frameComponents=[],r.frameHeightAdjust=0,r.titleBarHeight="0px",r.titleBarBorderBottomFocused=null,r.titleBarCaptionLeftMargin="0px",r.onInitialize=function(){},r.pullUpDisabled=!0;var n=t.parentCanvas,o=p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX+t.id,i=new b(o,0,0,1,1,r);i.setSize(window.innerWidth,window.innerHeight,!0),i.setResizable(!1),window.addEventListener("resize",(function(){i.setSize(window.innerWidth,window.innerHeight,!0)})),t.modalBackgroundWindowId=o,i.hide(),n.addWindow(i),i.setTitle("").getFrameView().innerHTML='
',i.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",i.show(),t.show(),e&&t.setOnCloseFrameListener(e)},b.prototype.hide=function(){return this.htmlElement.style.display="none",this},b.prototype.onmouseDown=function(e){document.body.ondrag=function(){return!1},this.decorator=y.prototype.onmouseDown,this.decorator(e);var t=this.parent,r=this.parentCanvas;for(var n in r.beanList){var o=r.beanList[n];n==t.getWindowId()||o.handleReleasingFocus()}t.handleTakingFocus()},b.prototype.mouseUp=function(e){(this.overrayTransparentScreenEnabled||this.overrayTransparentScreenOnResize)&&(this.parentCanvas.onTopObject==this?(this.transparence.style.width="0px",this.transparence.style.height="0px"):this.overrayTransparentScreenEnabled&&(this.transparence.style.width=parseInt(this.iframe.width)+"px",this.transparence.style.height=parseInt(this.iframe.height)+"px")),this.decorator=y.prototype.mouseUp,this.decorator(e),document.body.ondrag=null,document.body.onselectstart=null,this.transparence.style.pointerEvents="none"},b.prototype.setMinFrameSize=function(e,t){this.minFrameWidth=e,this.minWindowHeight=t},b.prototype.resize=function(e,t,r,n,o){if(!this.resizable&&o)return null;var i=this.getSize(),a=parseInt(this.htmlElement.style.left,10),l=parseInt(this.htmlElement.style.top,10),s=parseInt(this.htmlElement.style.width,10),d=parseInt(this.htmlElement.style.height,10);o&&s+r'+l+""});s||c.hideFrameComponent("closeButton");var m=window.innerWidth/2;"right"==t.hAlign&&(m=-m),"bottom"==t.vAlign&&(i-=window.innerHeight,a-=window.innerHeight),t.createAnimator().set(c).setDuration(300).fromPosition(m,i,"CENTER_CENTER").toPosition(m,a,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,!1).then((function(e){return e.setDuration(300).fromPosition(m,a,"CENTER_CENTER").toPosition(m,i,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,!1)})).then((function(e){e.get().closeFrame()}))}},Object.freeze(p),e.exports=C},function(e,t,r){var n=r(0),o=r(13);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-titlebar-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-titlebar-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-modal-window-background {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n widdth: 100%\n}",""]),e.exports=t},function(e,t,r){ /*! event-emitter(https://github.com/riversun/event-emitter) v1.2.1 Copyright (c) 2020 riversun.org@gmail.com */ -e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}},{key:"addListenerFunc",value:function(e){this.listenerFuncs.push(e)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncs);try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}(),u=function(){function e(){i(this,e),this.listenerFuncMap=new Map}return l(e,[{key:"clearAll",value:function(){this.listenerFuncMap.clear()}},{key:"hasListenerFunc",value:function(e){return this.listenerFuncMap.has(e)}},{key:"putListenerFunc",value:function(e,t){this.listenerFuncMap.set(e,t)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncMap.values());try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}()}]).default},function(e,t,r){"use strict";var n=r(4),o=r(3),i=r(2),a=r(5);function l(e){this.eventListenerHelper=new a,this.windowMode="default",this.styleDisplay="flex",this.horizontalAlign="left",this.verticalAlign="top",this.keyListener=null,this.minimizeButton=null,this.maximizeButton=null,this.demaximizeButton=null,this.deminimizeButton=null,this.opts=e,this.isWindowManagerFixed=e.frame.jsFrame.isWindowManagerFixed,e.styleDisplay&&(this.styleDisplay=e.styleDisplay),e.minimizeButton&&(this.minimizeButton=e.minimizeButton),e.deminimizeButton&&(this.deminimizeButton=e.deminimizeButton),e.maximizeButton&&(this.maximizeButton=e.maximizeButton),e.demaximizeButton&&(this.demaximizeButton=e.demaximizeButton),e.hideButton&&(this.hideButton=e.hideButton),this.maximizeParam=e.maximizeParam,this.demaximizeParam=e.demaximizeParam,this.minimizeParam=e.minimizeParam,this.deminimizeParam=e.deminimizeParam,this.hideParam=e.hideParam,this.dehideParam=e.dehideParam,e.horizontalAlign&&(this.horizontalAlign=e.horizontalAlign),e.verticalAlign&&(this.verticalAlign=e.verticalAlign),this.animationEnabled=!1,this.animationDuration=100,this.frame=e.frame,this.hideFrameBorder=!0,this.hideTitleBar=!0,this.restoreKey=null,this.restoreDuration=null,this.restoreCallback=null,this.statsStore={},e.animation&&(this.animationEnabled=e.animation),e.animationDuration&&(this.animationDuration=e.animationDuration),this.eventListeners={},this.resizeListener=this.handleOnResize.bind(this)}l.prototype.on=function(e,t){this.eventListeners[e]=t},l.prototype.doMaximize=function(e){var t=this;if("hid"===t.windowMode)throw Error("[JSrame] It is not possible to change directly from the hid state to the maximized state");if("maximized"!==t.windowMode&&"maximizing"!==t.windowMode){t.windowMode="maximizing";var r=t.frame;t.eventListenerHelper.hasEventListener(window,"resize","window-resize-listener")||t.eventListenerHelper.addEventListener(window,"resize",t.resizeListener,{listenerName:"window-resize-listener"}),t.saveCurrentWindowStats("maximize_mode"),t.hideTitleBar=!!e&&e.fullScreen,t.hideTitleBar?r.hideAllVisibleFrameComponents():(t.maximizeButton&&r.hideFrameComponent(t.maximizeButton),t.demaximizeButton&&r.showFrameComponent(t.demaximizeButton,t.styleDisplay)),r.setMovable(!1),r.setResizable(!1),e&&e.restoreKey&&(t.restoreKey=e.restoreKey),e&&e.restoreDuration&&(t.restoreDuration=e.restoreDuration),e&&e.restoreCallback&&(t.restoreCallback=e.restoreCallback),t.renderMaximizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null})}},l.prototype.renderMaximizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("maximize_mode"),o=0,i=0,a=0,l=0;t.hideTitleBar&&(o=0,i=-n.titleBarHeight),t.hideFrameBorder?(a=window.innerWidth,l=window.innerHeight+(t.hideTitleBar?n.titleBarHeight:0)):(a=window.innerWidth-2*n.frameBorderWidthDefault,l=window.innerHeight-2*n.frameBorderWidthDefault+(t.hideTitleBar?n.titleBarHeight:0)),"right"==t.horizontalAlign&&(o=-a),"bottom"==t.verticalAlign&&(i=-l);var s=function(n){var s=n&&n.disableCallback;r.setPosition(o,i),t.hideFrameBorder&&(r.frameBorderWidthDefault=0,r.frameBorderWidthFocused=0,r.htmlElement.style.borderWidth="0px"),r.setSize(a,l,!0),s||(t.hideTitleBar&&(t.restoreKey&&(t.keyListener=function(e){e.code===t.restoreKey&&t.doCommand("restore")}),window.addEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.addEventListener("keydown",t.keyListener)),t.windowMode="maximized",e&&e.callback&&e.callback(t.frame,{eventType:"maximized"}),t.eventListeners.maximized&&t.eventListeners.maximized(t.frame,{eventType:"maximized"}))};e&&e.animation?t.animateFrame({frame:r,from:n,to:{left:o,top:i,width:a,height:l},duration:e.duration?e.duration:t.animationDuration,callback:s}):e&&"handleOnResize"===e.caller?s({disableCallback:!0}):s()},l.prototype.doDemaximize=function(e){var t=this,r=t.frame;if("hid"===t.windowMode)throw Error("[JSFrame] demaximize(=recovery from maximized) cannot be performed in hid state.");t.hasWindowStats("maximize_mode")&&(t.hideTitleBar||(t.maximizeButton&&r.showFrameComponent(t.maximizeButton,t.styleDisplay),t.demaximizeButton&&r.hideFrameComponent(t.demaximizeButton)),t.restoreWindow({restorePosition:!0,restoreMode:"maximize_mode",animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,forceShowFrameComponents:t.animationEnabled&&t.hideTitleBar,duration:e&&e.duration?e.duration:null,eventType:"demaximized"}))},l.prototype.handleOnResize=function(){this.renderMaximizedMode({caller:"handleOnResize"})},l.prototype.doMinimize=function(e){var t=this;if("minimized"!==t.windowMode&&"minimizing"!==t.windowMode){t.windowMode="minimizing";var r=t.frame;t.saveCurrentWindowStats("minimize_mode"),r.setResizable(!1),t.renderMinimizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null,toWidth:e&&e.toWidth?e.toWidth:null})}},l.prototype.renderMinimizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("minimize_mode"),o=t.getCurrentWindowStats(),i=t.getCurrentWindowStats();i.height=n.titleBarHeight,e&&e.toWidth&&(i.width=e.toWidth);var a=function(){r.setSize(i.width,i.height,!0),t.windowMode="minimized",t.minimizeButton&&r.hideFrameComponent(t.minimizeButton),t.deminimizeButton&&r.showFrameComponent(t.deminimizeButton,t.styleDisplay),e.callback&&e.callback(t.frame,{eventType:"minimized"}),t.eventListeners.minimized&&t.eventListeners.minimized(t.frame,{eventType:"minimized"})};e&&e.animation?t.animateFrame({toAlpha:1,duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:i,callback:a}):a()},l.prototype.doDeminimize=function(e){var t=this,r=t.frame;t.hasWindowStats("minimize_mode")&&(t.minimizeButton&&r.showFrameComponent(t.minimizeButton,t.styleDisplay),t.deminimizeButton&&r.hideFrameComponent(t.deminimizeButton),t.restoreWindow({restorePosition:!1,restoreMode:"minimize_mode",animation:t.animationEnabled,duration:e&&e.duration?e.duration:null,callback:e&&e.callback?e.callback:null,eventType:"deminimized"}))},l.prototype.doHide=function(e){var t=this;if("hid"!==t.windowMode&&"hiding"!==t.windowMode){t.windowMode="hiding";var r=t.frame;t.saveCurrentWindowStats("hide_mode"),r.setResizable(!1);var n={animation:t.animationEnabled};e&&i({op:"overwrite-merge",object1:n,object2:e}),t.renderHideMode(n)}},l.prototype.renderHideMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("hide_mode"),i=t.getCurrentWindowStats(),a={x:0,y:0},l=e.toElement;e.offset&&(a=e.offset);var s=0,d=0,u=e&&e.align?e.align:"LEFT_TOP";if(u&&o.LEFT_TOP!=u){if(o.HCENTER_TOP==u)s=i.left+i.width/2,d=i.top;else if(o.RIGHT_TOP==u)s=i.left+i.width,d=i.top;else if(o.LEFT_VCENTER==u)s=i.left,d=i.top+i.height/2;else if(o.HCENTER_VCENTER==u)s=i.left+i.width/2,d=i.top+i.height/2;else if(o.RIGHT_VCENTER==u)s=i.left+i.width,d=i.top+i.height/2;else if(o.LEFT_BOTTOM==u)s=i.left,d=i.top+i.height;else if(o.HCENTER_BOTTOM==u)s=i.left+i.width/2,d=i.top+i.height;else if(o.RIGHT_BOTTOM==u)s=i.left+i.width,d=i.top+i.height;else if("ABSOLUTE"==u)if(l){var c=l.getBoundingClientRect();t.isWindowManagerFixed?(s=c.left,d=c.top):(s=c.left+window.pageXOffset,d=c.top+window.pageYOffset)}else s=a.x,d=a.y}else s=i.left,d=i.top;var m={left:s,top:d,width:0,height:n.titleBarHeight},p=function(){r.setSize(m.width,m.height,!0),t.windowMode="hid",e&&e.callback&&e.callback(t.frame,{eventType:"hid"}),t.eventListeners.hid&&t.eventListeners.hid(t.frame,{eventType:"hid"})};r.hideAllVisibleFrameComponents(),e&&e.animation?t.animateFrame({fromAlpha:e.silent?0:1,toAlpha:0,duration:e.duration?e.duration:t.animationDuration,frame:r,from:i,to:m,callback:p}):p()},l.prototype.doDehide=function(e){this.frame;this.hasWindowStats("hide_mode")&&this.restoreWindow({duration:e&&e.duration?e.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:this.animationEnabled,forceShowFrameComponents:!0,callback:e&&e.callback?e.callback:null,eventType:"dehided"})},l.prototype.loadWindowStats=function(e){return this.statsStore[e]},l.prototype.saveCurrentWindowStats=function(e){var t=this,r=t.getCurrentWindowStats();if(t.hasWindowStats(e)){var n=t.loadWindowStats(e),o=!t.windowStatsEquals(r,n);return o&&(t.statsStore[e]=r),o}return t.statsStore[e]=r,!0},l.prototype.windowStatsEquals=function(e,t){return!(!e||!t)&&JSON.stringify(e)===JSON.stringify(t)},l.prototype.clearWindowStats=function(e){this.statsStore[e]=null},l.prototype.hasWindowStats=function(e){return this.statsStore[e]},l.prototype.getCurrentWindowStats=function(){var e=this.frame,t=parseInt(e.titleBar.style.height,10),r=e.frameBorderWidthDefault,n=e.frameBorderWidthFocused;return{left:e.getLeft(),top:e.getTop(),width:e.getWidth(),height:e.getHeight(),titleBarHeight:t,frameBorderWidthDefault:r,frameBorderWidthFocused:n,resizable:e.resizable,movable:e.movable}},l.prototype.restoreWindow=function(e){var t=this,r=t.frame,n=t.loadWindowStats(e.restoreMode),o=t.getCurrentWindowStats();r.frameBorderWidthDefault=n.frameBorderWidthDefault,r.frameBorderWidthFocused=n.frameBorderWidthFocused,r.htmlElement.style.borderWidth=r.frameBorderWidthFocused;var i=function(){e&&0==e.restorePosition&&(n.left=o.left,n.top=o.top),r.setPosition(n.left,n.top);r.setSize(n.width,n.height,!0),r.setResizable(n.resizable),r.setMovable(n.movable),t.clearWindowStats(e.restoreMode),t.keyListener&&(window.removeEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.removeEventListener("keydown",t.keyListener),t.keyListener=null),t.windowMode="default",e&&e.forceShowFrameComponents&&r.showAllVisibleFrameComponents(),r.show();var i="restored";e&&e.eventType&&(i=e.eventType),e&&e.callback&&e.callback(t.frame,{eventType:i}),t.eventListeners[i]&&t.eventListeners[i](t.frame,{eventType:i})};e&&e.animation?t.animateFrame({duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:n,callback:i}):i(),t.eventListenerHelper.removeEventListener(window,"resize",t.resizeListener)},l.prototype.animateFrame=function(e){var t=isNaN(e.fromAlpha)?1:e.fromAlpha,r=e.from,o=e.to;(new n).set(e.frame).setDuration(e.duration?e.duration:this.animationDuration).fromPosition(r.left,r.top,"LEFT_TOP").toPosition(o.left,o.top,"LEFT_TOP").fromWidth(r.width).fromHeight(r.height).toWidth(o.width).toHeight(o.height).fromAlpha(t).toAlpha(0==e.toAlpha?0:1).start(0,!1).then((function(t){e.callback()}))},l.prototype.doCommand=function(e,t){var r=this;"maximize"===e&&r._defaultFunctionMaximize(r.frame),"demaximize"===e&&r._defaultFunctionDemaximize(r.frame),"restore"===e&&r._defaultFunctionRestoreFromFullscreen(r.frame),"minimize"===e&&r._defaultFunctionMinimize(r.frame),"deminimize"===e&&r._defaultFunctionDeminimize(r.frame),"hide"===e&&r._defaultFunctionHide(r.frame),"dehide"===e&&r._defaultFunctionDehide(r.frame)},l.prototype._defaultFunctionMaximize=function(e,t){var r=this.opts,n={fullScreen:!0===r.maximizeWithoutTitleBar,restoreKey:r.restoreKey?r.restoreKey:"Escape",restoreDuration:r.restoreDuration};this.maximizeParam&&i({op:"overwrite-merge",object1:n,object2:this.maximizeParam}),e.control.doMaximize(n)},l.prototype._defaultFunctionDemaximize=function(e,t){e.control.doDemaximize({})},l.prototype._defaultFunctionRestoreFromFullscreen=function(e,t){e.control.doDemaximize({duration:this.restoreDuration?this.restoreDuration:null,callback:this.restoreCallback?this.restoreCallback:null})},l.prototype._defaultFunctionMinimize=function(e,t){e.control.doMinimize(this.minimizeParam)},l.prototype._defaultFunctionDeminimize=function(e,t){e.control.doDeminimize(this.deminimizeParam)},l.prototype._defaultFunctionHide=function(e,t){var r={align:"CENTER_BOTTOM"};this.hideParam&&(r=this.hideParam),e.control.doHide(r)},l.prototype._defaultFunctionDehide=function(e,t){e.control.doDehide(this.dehideParam)},l.prototype.setupDefaultEvents=function(){var e=this;e.maximizeButton&&e.frame.on(e.maximizeButton,"click",e._defaultFunctionMaximize.bind(e)),e.demaximizeButton&&e.frame.on(e.demaximizeButton,"click",e._defaultFunctionDemaximize.bind(e)),e.minimizeButton&&e.frame.on(e.minimizeButton,"click",e._defaultFunctionMinimize.bind(e)),e.deminimizeButton&&e.frame.on(e.deminimizeButton,"click",e._defaultFunctionDeminimize.bind(e)),e.hideButton&&e.frame.on(e.hideButton,"click",e._defaultFunctionHide.bind(e))},e.exports=l},function(e,t){var r=function(){function e(){var e=this;e._timerId=null,e._isRunning=!1,e._timerInterval=0,e._internalCallback=function(){e._timerMethod&&e._timerMethod(e);e._isRunning&&(clearTimeout(e._timerId),e._timerId=setTimeout(e._internalCallback,e._timerInterval))},e._timerMethod=null}return e.prototype.setCallback=function(e){return this._timerMethod=e,this},e.prototype.setIntervalMillis=function(e){return this._timerInterval=e,this},e.prototype.stopTimer=function(){return this._isRunning=!1,this},e.prototype.startTimer=function(){var e=this;return e._timerInterval>0&&(e._timerId=setTimeout(e._internalCallback,e._timerInterval),e._isRunning=!0),e},e}();e.exports=r},function(e,t,r){var n=r(7),o=r(20);function i(){var e=this;this.showTitleBar=!0,this.showCloseButton=!0,this.titleBarCaption="",this.titleBarCaptionFontSize="12px",this.titleBarCaptionFontWeight="bold",this.titleBarHeight="24px",this.useIframe=!1,this.useFrame=!0,this.titleBarClassNameDefault=null,this.titleBarClassNameFocused=null,this.setUseIFrame=function(t){return e.useIframe=t,e.useFrame=!t,e},this.titleBarCaptionLeftMargin="5px",this.titleBarColorDefault=null,this.titleBarColorFocused=null,this.titleBarCaptionColorDefault="",this.titleBarCaptionColorFocused="",this.titleBarCaptionTextShadow="0 1px 0 rgba(255,255,255,.7)",this.titleBarCaptionTextAlign="center",this.titleBarBorderBottomDefault="1px solid rgba(0,0,0,0.2)",this.titleBarBorderBottomFocused=null,this.frameBorderRadius="6px",this.frameBorderWidthDefault="1px",this.frameBorderWidthFocused=this.frameBorderWidthDefault,this.frameBorderColorDefault="rgba(1, 1, 1, 0.2)",this.frameBorderColorFocused=this.frameBorderColorDefault,this.frameBorderStyle="solid",this.frameBoxShadow="2px 3px 16px rgba(0,0,0,.6)",this.frameBackgroundColor="transparent",this._partsBuilder=null,this.frameComponents=[],this.frameHeightAdjust=1,this.resizeAreaWidth=20,this.resizeAreaHeight=20,this.resizeAreaOffset=0,this.resizeAreaVisible=!1,this.getFrameInnerBorderRadius=function(t,r){return t?r?{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthFocused,10)+"px"}:{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthDefault,10)+"px"}:null},this.onInitialize=function(){if(e.showCloseButton){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.size=14,r.captionShiftYpx=0,r.captionFontRatio=1,r.borderRadius=2,r.backgroundColorPressed="transparent",r.backgroundColorDefault="transparent",r.caption="✖",r.captionColorDefault="gray",r.captionColorFocused="gray",r.captionColorHovered="silver",r.captionColorPressed="black",r.borderWidth=0,r.borderColorDefault="#aaaaaa",r.borderStyle="solid";var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-10,-18,"RIGHT_TOP")}},this.onTitleBarStyleInitialize=function(){}}i.prototype.getPartsBuilder=function(){return null===this._partsBuilder&&(this._partsBuilder=new n),this._partsBuilder},i.prototype.initialize=function(){this.onInitialize()},i.prototype.addFrameComponent=function(e,t,r,n,i,a){var l=new o(e,t,r,n,i,a);return t._onTakeFocus&&t._onReleaseFocus&&l.setFocusCallback(t._onTakeFocus,t._onReleaseFocus),this.frameComponents.push(l),l},e.exports=i},function(e,t,r){function n(){this.imageDefault=null,this.imageHovered=null,this.imagePressed=null,this.imageFocused=null,this.imageStore={}}r(6)(n,r(8)),n.prototype._setImage=function(e,t,r){var n=this.imageStore[e];if(n)return n;var o=document.createElement("img");if(o.src=e,t&&r){var i="margin:0px;padding:0px;width:"+t+"px;height:"+r+"px";o.setAttribute("style",i)}return this.imageStore[e]=o,o},n.prototype.setSrc=function(e){var t=this;e.default&&(t.imageDefault=t._setImage(e.default,e.width,e.height)),e.hovered&&(t.imageHovered=t._setImage(e.hovered,e.width,e.height)),e.pressed&&(t.imagePressed=t._setImage(e.pressed,e.width,e.height)),e.focused&&(t.imageFocused=t._setImage(e.focused,e.width,e.height))},e.exports=n},function(e,t){e.exports=function(e){this.childMenuHTML="",this.childMenuWidth=0,this.childMenuAlign="LEFT",this.yOffset=0,this.xOffset=0}},function(e,t){function r(e,t,r,n,o,i){var a=this;a.id=e,a.x=r,a.y=n,a.frame=null,a._focusTakingCallabck=null,a._focusReleasingCallabck=null,a.frameComponentAlign=o||CALIGN.LEFT_TOP,a.htmlElement=t,a.htmlElement.style.zIndex=50,a.htmlElement.setAttribute("component-id",e),i&&i.childMenu?a.childMenu=i.childMenu:t.querySelector(".jsframe-child-menu")&&(a.childMenu=t.querySelector(".jsframe-child-menu"))}r.prototype.setFocusCallback=function(e,t){this._focusTakingCallabck=e,this._focusReleasingCallabck=t},r.prototype.setFrame=function(e){this.frame=e,this.htmlElement.parentObject=e,this.updateAlign()},r.prototype.updateAlign=function(){var e=this,t=e.frameComponentAlign,r=e.frame,n=e.htmlElement.style;n.userSelect="none";var o=e.x,i=e.y,a=r.getWidth(),l=r.getHeight(),s=n.width,d=n.height;CALIGN.LEFT_TOP==t?(n.left=o+"px",n.top=i+"px"):CALIGN.HCENTER_TOP==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=i+"px"):CALIGN.RIGHT_TOP==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=i+"px"):CALIGN.LEFT_VCENTER==t?(n.left=o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.HCENTER_VCENTER==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.RIGHT_VCENTER==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.LEFT_BOTTOM==t?(n.left=o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.HCENTER_BOTTOM==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.RIGHT_BOTTOM==t&&(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px")},r.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},r.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},e.exports=r},function(e,t,r){r(22);var n=r(9);e.exports.getStyle=function(e,t){var r={titleBar:{greenButton:"maximize"}},o=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="11px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=null,e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="26px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="1px solid #b1aeb1",e.titleBarBorderBottomFocused=e.titleBarBorderBottomDefault,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#acacac",e.frameBorderColorFocused="#acacac",e.frameBorderStyle="solid",e.frameBoxShadow="0px 0px 20px rgba(0, 0, 0, 0.3)",e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-yosemite-focused",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-yosemite-default",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQoU2NkIBIwEqmOAa6wgZWlH6Sp4fefQjCNxkdRyMjAUPCf4f8CkEJGBsaE/wwME2AaUaxuYGWeD1IAUgjS0PD7byLMaaQrBLmJKKuJ9gyhYCI6HAGlFDALf9s7eQAAAABJRU5ErkJggg==",n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVElEQVQoU2NkIBIwoqvjixFoAIl9WvIBTMMAhkLeGP79IMnPSz46kq8QZN1/hv/2IBMYGRgMQPR/BoYLED7jQZAzwFYTrRDZLdRxI7KJRAcPrvAHAATYKgvLH0fAAAAAAElFTkSuQmCC";"fullscreen"===o.titleBar.greenButton&&(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZElEQVQoU2NkIBIwEqmOAUWhQIKAwL8///czMDAYwAz4tOQjWA1cIUjRhwUfPqArxlDIF8N/nomF0RFdMTaF/xkYGC6gK/605KMhitV8MfwghSCAohhkAy6FKIphniIvePCFKQDzGzsLS+7n2AAAAABJRU5ErkJggg==");var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",a="margin:0px;padding:0px;width:10px;height:10px",l=document.createElement("img");l.src=n,l.setAttribute("style",a);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAiUlEQVQoU2NkwAIEogQMPiz7cAFZihGbQt4Y/v0MjIwLPy/+sAAmj1MhIwODw39GxkSYYrwKQabBFGNVyBfL1///P6MBzFrmf4yFjCCH/2X63w93C+P/C58WfypEdzvYRN5YgQTG///ng61iYDjweclHR6wKkRUTVAhTzPD/fzxeE2FWYQtskBwAKwQ7tVjAL4MAAAAASUVORK5CYII=",s.setAttribute("style",a);var d=document.createElement("img");d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMUlEQVQoU2NkIBIwEqmOgUYKa7w4Ghj+M9hjdQYjw8GWbT8awFYTrZAYD9HIM8RYDQBsEAwLkq4IAgAAAABJRU5ErkJggg==",d.setAttribute("style",a);var u=document.createElement("img");u.src=r,u.setAttribute("style",a);var c=document.createElement("img");c.src=i,c.setAttribute("style","margin:0px;padding:0px;width:6px;height:6px");var m=t.buildImageButtonAppearance();m.imageDefault=c,m.imageHovered=u,m.imagePressed=u,m.imageFocused=c,m.size=10,m.borderRadius=5,m.borderWidth=1,m.borderColorDefault="#c6c6c6",m.borderColorFocused="#d3524e",m.borderColorHovered=m.borderColorFocused,m.borderColorPressed="#e64842",m.borderStyleDefault="solid",m.borderStyleFocused=m.borderStyleDefault,m.borderStyleHovered=m.borderStyleDefault,m.borderStylePressed=m.borderStyleDefault,m.backgroundColorDefault="#d0d0d0",m.backgroundColorFocused="#fc615c",m.backgroundColorHovered=m.backgroundColorFocused,m.backgroundColorPressed=m.backgroundColorDefault,m.setSrc({default:i,focused:i,hovered:r,pressed:r});var p=t.buildButton(m),h=8,f=-19,y="LEFT_TOP";e.addFrameComponent("closeButton",p,h,f,y);var b=t.buildImageButtonAppearance(m);b.borderColorDefault="#c6c6c6",b.borderColorFocused="#e6b347",b.borderColorHovered=b.borderColorFocused,b.borderColorPressed="#e1a12d",b.backgroundColorDefault="#d0d0d0",b.backgroundColorFocused="#fdbe40",b.backgroundColorHovered=b.backgroundColorFocused,b.backgroundColorPressed=b.backgroundColorDefault,b.imageDefault=c,b.imageHovered=d,b.imagePressed=d,b.imageFocused=c;var g=t.buildButton(b),v=t.buildButton(b);v.style.display="none";h=28,f=-19,y="LEFT_TOP";e.addFrameComponent("minimizeButton",g,h,f,y),e.addFrameComponent("deminimizeButton",v,h,f,y);var C=t.buildImageButtonAppearance(m);C.borderColorDefault="#c6c6c6",C.borderColorFocused="#67b657",C.borderColorHovered=C.borderColorFocused,C.borderColorPressed="#00af38",C.backgroundColorDefault="#d0d0d0",C.backgroundColorFocused="#34ca49",C.backgroundColorHovered=C.backgroundColorFocused,C.backgroundColorPressed=C.backgroundColorDefault,C.imageDefault=c,C.imageHovered=l,C.imagePressed=l,C.imageFocused=c;var B=t.buildButton(C),E=t.buildImageButtonAppearance(m);E.borderColorDefault="#c6c6c6",E.borderColorFocused="#67b657",E.borderColorHovered=E.borderColorFocused,E.borderColorPressed="#00af38",E.backgroundColorDefault="#d0d0d0",E.backgroundColorFocused="#34ca49",E.backgroundColorHovered=E.backgroundColorFocused,E.backgroundColorPressed=E.backgroundColorDefault,E.imageDefault=c,E.imageHovered=s,E.imagePressed=s,E.imageFocused=c;var w=t.buildButton(E);w.style.display="none";h=48,f=-19,y="LEFT_TOP";e.addFrameComponent("dezoomButton",w,h,f,y),e.addFrameComponent("zoomButton",B,h,f,y)},e}},function(e,t,r){var n=r(0),o=r(23);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-yosemite-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-yosemite-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n",""]),e.exports=t},function(e,t,r){r(25),e.exports.getStyle=function(e){return e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#9b9a9b",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="30px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="solid 1px #aaaaaa",e.titleBarBorderBottomFocused="solid 1px #1883d7",e.frameBorderRadius="0px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#1883d7",e.frameBorderStyle="solid",e.frameBoxShadow=null,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-redstone-focused",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-redstone-default",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=45,r.height=28,r.borderRadius=0,r.borderWidth=0,r.borderColorDefault="#c6c6c6",r.borderColorFocused="#fc615c",r.borderColorHovered=r.borderColorFocused,r.borderColorPressed="#e64842",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#e81123",r.backgroundColorPressed="#f1707a",r.caption="╳",r.captionColorDefault="#9b9a9b",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=0,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("closeButton",n,o,i,a);var l=t.buildTextButtonAppearance();l.width=45,l.height=28,l.borderRadius=0,l.borderWidth=0,l.borderColorDefault="#c6c6c6",l.borderColorFocused="#fc615c",l.borderColorHovered=l.borderColorFocused,l.borderColorPressed="#e64842",l.borderStyleDefault="solid",l.borderStyleFocused=l.borderStyleDefault,l.borderStyleHovered=l.borderStyleDefault,l.borderStylePressed=l.borderStyleDefault,l.backgroundColorDefault="white",l.backgroundColorFocused="white",l.backgroundColorHovered="#e5e5e5",l.backgroundColorPressed="#cccccc",l.caption="☐",l.captionColorDefault="#9b9a9b",l.captionColorFocused="black",l.captionColorHovered="black",l.captionColorPressed="black",l.captionShiftYpx=1,l.captionFontRatio=.55;var s=t.buildTextButton(l);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("maximizeButton",s,o,i,a);var d=t.buildTextButtonAppearance();d.width=45,d.height=28,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="white",d.backgroundColorFocused="white",d.backgroundColorHovered="#e5e5e5",d.backgroundColorPressed="#cccccc",d.caption="_",d.captionColorDefault="#9b9a9b",d.captionColorFocused="black",d.captionColorHovered="black",d.captionColorPressed="black",d.captionShiftYpx=-2,d.captionFontRatio=.3;var u=t.buildTextButton(d);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("minimizeButton",u,o,i,a);var c=t.buildTextButtonAppearance();c.width=45,c.height=28,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="white",c.backgroundColorFocused="white",c.backgroundColorHovered="#e5e5e5",c.backgroundColorPressed="#cccccc",c.caption="▣",c.captionColorDefault="#9b9a9b",c.captionColorFocused="black",c.captionColorHovered="black",c.captionColorPressed="black",c.captionShiftYpx=1,c.captionFontRatio=.6;var m=t.buildTextButton(c);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";m.style.display="none",e.addFrameComponent("deminimizeButton",m,o,i,a);var p=t.buildTextButtonAppearance();p.width=45,p.height=28,p.borderRadius=0,p.borderWidth=0,p.borderColorDefault="#c6c6c6",p.borderColorFocused="#fc615c",p.borderColorHovered=p.borderColorFocused,p.borderColorPressed="#e64842",p.borderStyleDefault="solid",p.borderStyleFocused=p.borderStyleDefault,p.borderStyleHovered=p.borderStyleDefault,p.borderStylePressed=p.borderStyleDefault,p.backgroundColorDefault="white",p.backgroundColorFocused="white",p.backgroundColorHovered="#e5e5e5",p.backgroundColorPressed="#cccccc",p.caption="❏",p.captionColorDefault="#9b9a9b",p.captionColorFocused="black",p.captionColorHovered="black",p.captionColorPressed="black",p.captionShiftYpx=1,p.captionFontRatio=.55;var h=t.buildTextButton(p);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";h.style.display="none",e.addFrameComponent("restoreButton",h,o,i,a)},e}},function(e,t,r){var n=r(0),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-redstone-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-redstone-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t,r){r(28),e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="5px",e.titleBarColorDefault="white",e.titleBarColorFocused="white",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#aaaaaa",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="white",e.frameComponents=new Array,e.frameHeightAdjust=2,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-popup-focused",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-popup-default",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=1,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#eeeeee",r.backgroundColorPressed="#dddddd",r.backgroundBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",r.caption="✖",r.captionColorDefault="black",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=-6-parseInt(e.titleBarHeight);e.addFrameComponent("closeButton",n,10,o,"RIGHT_TOP")},e}},function(e,t,r){var n=r(0),o=r(29);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-popup-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-popup-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t){e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="0px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="0px",e.titleBarCaptionColorDefault="transparent",e.titleBarCaptionColorFocused="transparent",e.titleBarHeight="0px",e.titleBarColorDefault="transparent",e.titleBarColorFocused="transparent",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="10px",e.frameBorderWidthDefault="0px",e.frameBorderWidthFocused="0px",e.frameBorderColorDefault="transparent",e.frameBorderColorFocused="transparent",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 15px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="transparent",e.frameComponents=[],e.frameHeightAdjust=1,e.captionClor="darkgray",e.pullUpDisabled=!1,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=0,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="transparent",r.backgroundColorFocused="transparent",r.backgroundColorHovered="transparent",r.backgroundColorPressed="transparent",r.backgroundBoxShadow=null,r.caption="✖",r.captionColorDefault=e.captionClor,r.captionColorFocused=e.captionClor,r.captionColorHovered=e.captionClor,r.captionColorPressed=e.captionClor,r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-6,3,"RIGHT_TOP")},e}},function(e,t,r){r(32);var n=r(9);function o(e,t,r){var n,o=e.getPartsBuilder(),a=0;for(var l in n=r?t.titleBar.buttonsOnLeft:t.titleBar.buttons){var s=n[l],d=o.buildTextButtonAppearance();d.fa=s.fa,d.width=t.titleBar.buttonWidth,d.height=t.titleBar.buttonHeight,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="transparent",d.backgroundColorFocused="transparent",d.backgroundColorHovered="transparent",d.backgroundColorPressed="transparent";var u=i(t.titleBar.buttonColor);d.captionColorDefault=t.titleBar.buttonColor,d.captionColorFocused=t.titleBar.buttonColor,d.captionColorHovered=u.hovered,d.captionColorPressed=u.pressed,d.captionShiftYpx=0,d.captionFontRatio=1;var c=o.buildTextButton(d);s.visible?c.style.display="flex":(r?a-=t.titleBar.buttonWidth:a+=t.titleBar.buttonWidth,c.style.display="none");var m,p,h=parseInt(e.titleBarHeight),f=a,y=-h+(h-d.height)/2;m=r?"LEFT_TOP":"RIGHT_TOP",s.childMenuHTML&&((p=document.createElement("div")).id=s.name+"_child_menu",p.innerHTML=s.childMenuHTML,p.style.position="absolute",p.style.width=(s.childMenuWidth?s.childMenuWidth:200)+"px",p.style.top=parseInt(c.style.top,10)+parseInt(c.style.height,10)/2+h/2+"px",p.style.left=c.style.left,p.style.display="none",c.appendChild(p)),e.addFrameComponent(s.name,c,f,y,m,{childMenu:p}),a+=r?t.titleBar.buttonWidth:-t.titleBar.buttonWidth}}function i(e){var t=document.createElement("canvas");t.height=1,t.width=1;var r=t.getContext("2d");r.fillStyle=e,r.fillRect(0,0,1,1);var n=r.getImageData(0,0,1,1).data,o=n[0],i=n[1],a=n[2],l=n[3]/255,s=.85*l;return{src:"rgb("+o+","+i+","+a+","+s+")",hovered:"rgb("+o+","+i+","+a+","+s+")",pressed:"rgb("+o+","+i+","+a+","+.75*l+")"}}e.exports.getStyle=function(e,t){var r={border:{color:"transparent",width:0,radius:6},control:{maximizeWithoutTitleBar:!1,restoreKey:"Escape"},titleBar:{color:"white",background:"black",leftMargin:20,height:30,fontSize:12,buttonWidth:36,buttonHeight:16,buttonColor:"white",buttons:[{fa:"fas fa-times",name:"closeButton",visible:!0},{fa:"far fa-window-maximize",name:"maximizeButton",visible:!0},{fa:"far fa-window-restore",name:"restoreButton",visible:!1},{fa:"far fa-window-minimize",name:"minimizeButton",visible:!0},{fa:"fas fa-caret-up",name:"deminimizeButton",visible:!1}],buttonsOnLeft:[]}},i=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize=i.titleBar.fontSize+"px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=i.titleBar.leftMargin+"px",e.titleBarCaptionColorDefault=i.titleBar.color,e.titleBarCaptionColorFocused=i.titleBar.color,e.titleBarCaptionTextShadow=null,e.titleBarCaptionTextAlign="left",e.titleBarHeight=i.titleBar.height+"px",e.titleBarColorDefault=i.titleBar.background,e.titleBarColorFocused=i.titleBar.background,e.titleBarBorderBottomDefault="solid 0px #aaaaaa",e.titleBarBorderBottomFocused="solid 0px #1883d7",e.frameBorderRadius=i.border.radius+"px",e.frameBorderWidthDefault=i.border.width+"px",e.frameBorderWidthFocused=i.border.width+"px",e.frameBorderColorDefault=i.border.color,e.frameBorderColorFocused=i.border.color,e.frameBorderStyle="solid",e.frameBoxShadow=i.border.shadow,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){o(e,i,!1),o(e,i,!0)},e}},function(e,t,r){var n=r(0),o=r(33);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-material-default {\n background: black;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-material-focused {\n background: black;\n border-top-left-radius: 36px;\n border-top-right-radius: 36px;\n}\n",""]),e.exports=t},function(e,t,r){var n=r(2);e.exports.getPresetWindow=function(e){var t={appearanceName:"yosemite",appearanceParam:{}},r={};e&&(r=e);var o="fullscreen"===r.maximizeButtonBehavior,i="minimize"===r.minimizeButtonBehavior?"minimizeButton":null,a="hide"===r.minimizeButtonBehavior?"minimizeButton":null,l=r.control;return o&&(t.appearanceParam.titleBar={greenButton:"fullscreen"}),t.setupPresetWindow=function(e){var t={maximizeButton:"zoomButton",maximizeParam:{fullScreen:o,restoreKey:"Escape"},demaximizeButton:"dezoomButton",deminimizeButton:"deminimizeButton",minimizeButton:i,hideButton:a,hideParam:{align:"CENTER_CENTER",duration:300},dehideParam:{duration:300},styleDisplay:"inline",animation:!0,animationDuration:100};l&&n({op:"overwrite-merge",object1:t,object2:l}),e.setControl(t)},t}}])})); \ No newline at end of file +e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}},{key:"addListenerFunc",value:function(e){this.listenerFuncs.push(e)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncs);try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}(),u=function(){function e(){i(this,e),this.listenerFuncMap=new Map}return l(e,[{key:"clearAll",value:function(){this.listenerFuncMap.clear()}},{key:"hasListenerFunc",value:function(e){return this.listenerFuncMap.has(e)}},{key:"putListenerFunc",value:function(e,t){this.listenerFuncMap.set(e,t)}},{key:"callListenerFunc",value:function(e){var t,r=n(this.listenerFuncMap.values());try{for(r.s();!(t=r.n()).done;)(0,t.value)(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}()}]).default},function(e,t,r){"use strict";var n=r(4),o=r(3),i=r(2),a=r(5);function l(e){this.eventListenerHelper=new a,this.windowMode="default",this.styleDisplay="flex",this.horizontalAlign="left",this.verticalAlign="top",this.keyListener=null,this.minimizeButton=null,this.maximizeButton=null,this.demaximizeButton=null,this.deminimizeButton=null,this.opts=e,this.isWindowManagerFixed=e.frame.jsFrame.isWindowManagerFixed,e.styleDisplay&&(this.styleDisplay=e.styleDisplay),e.minimizeButton&&(this.minimizeButton=e.minimizeButton),e.deminimizeButton&&(this.deminimizeButton=e.deminimizeButton),e.maximizeButton&&(this.maximizeButton=e.maximizeButton),e.demaximizeButton&&(this.demaximizeButton=e.demaximizeButton),e.hideButton&&(this.hideButton=e.hideButton),e.hideButtons&&(this.hideButtons=e.hideButtons),this.maximizeParam=e.maximizeParam,this.demaximizeParam=e.demaximizeParam,this.minimizeParam=e.minimizeParam,this.deminimizeParam=e.deminimizeParam,this.hideParam=e.hideParam,this.dehideParam=e.dehideParam,e.horizontalAlign&&(this.horizontalAlign=e.horizontalAlign),e.verticalAlign&&(this.verticalAlign=e.verticalAlign),this.animationEnabled=!1,this.animationDuration=100,this.frame=e.frame,this.hideFrameBorder=!0,this.hideTitleBar=!0,this.restoreKey=null,this.restoreDuration=null,this.restoreCallback=null,this.statsStore={},e.animation&&(this.animationEnabled=e.animation),e.animationDuration&&(this.animationDuration=e.animationDuration),this.eventListeners={},this.resizeListener=this.handleOnResize.bind(this)}l.prototype.on=function(e,t){this.eventListeners[e]=t},l.prototype.doMaximize=function(e){var t=this;if("hid"===t.windowMode)throw Error("[JSrame] It is not possible to change directly from the hid state to the maximized state");if("maximized"!==t.windowMode&&"maximizing"!==t.windowMode){t.windowMode="maximizing";var r=t.frame;t.eventListenerHelper.hasEventListener(window,"resize","window-resize-listener")||t.eventListenerHelper.addEventListener(window,"resize",t.resizeListener,{listenerName:"window-resize-listener"}),t.saveCurrentWindowStats("maximize_mode"),t.hideTitleBar=!!e&&e.fullScreen,t.hideTitleBar?r.hideAllVisibleFrameComponents():(t.maximizeButton&&r.hideFrameComponent(t.maximizeButton),t.demaximizeButton&&r.showFrameComponent(t.demaximizeButton,t.styleDisplay)),r.setMovable(!1),r.setResizable(!1),e&&e.restoreKey&&(t.restoreKey=e.restoreKey),e&&e.restoreDuration&&(t.restoreDuration=e.restoreDuration),e&&e.restoreCallback&&(t.restoreCallback=e.restoreCallback),t.renderMaximizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null})}},l.prototype.renderMaximizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("maximize_mode"),o=0,i=0,a=0,l=0;t.hideTitleBar&&(o=0,i=-n.titleBarHeight),t.hideFrameBorder?(a=window.innerWidth,l=window.innerHeight+(t.hideTitleBar?n.titleBarHeight:0)):(a=window.innerWidth-2*n.frameBorderWidthDefault,l=window.innerHeight-2*n.frameBorderWidthDefault+(t.hideTitleBar?n.titleBarHeight:0)),"right"==t.horizontalAlign&&(o=-a),"bottom"==t.verticalAlign&&(i=-l);var s=function(n){var s=n&&n.disableCallback;r.setPosition(o,i),t.hideFrameBorder&&(r.frameBorderWidthDefault=0,r.frameBorderWidthFocused=0,r.htmlElement.style.borderWidth="0px"),r.setSize(a,l,!0),s||(t.hideTitleBar&&(t.restoreKey&&(t.keyListener=function(e){e.code===t.restoreKey&&t.doCommand("restore")}),window.addEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.addEventListener("keydown",t.keyListener)),t.windowMode="maximized",e&&e.callback&&e.callback(t.frame,{eventType:"maximized"}),t.eventListeners.maximized&&t.eventListeners.maximized(t.frame,{eventType:"maximized"}))};e&&e.animation?t.animateFrame({frame:r,from:n,to:{left:o,top:i,width:a,height:l},duration:e.duration?e.duration:t.animationDuration,callback:s}):e&&"handleOnResize"===e.caller?s({disableCallback:!0}):s()},l.prototype.getWindowMode=function(){return this.windowMode},l.prototype.doDemaximize=function(e){var t=this,r=t.frame;if("hid"===t.windowMode)throw Error("[JSFrame] demaximize(=recovery from maximized) cannot be performed in hid state.");t.hasWindowStats("maximize_mode")&&(t.hideTitleBar||(t.maximizeButton&&r.showFrameComponent(t.maximizeButton,t.styleDisplay),t.demaximizeButton&&r.hideFrameComponent(t.demaximizeButton)),t.restoreWindow({restorePosition:!0,restoreMode:"maximize_mode",animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,forceShowFrameComponents:t.animationEnabled&&t.hideTitleBar,duration:e&&e.duration?e.duration:null,eventType:"demaximized"}))},l.prototype.handleOnResize=function(){this.renderMaximizedMode({caller:"handleOnResize"})},l.prototype.doMinimize=function(e){var t=this;if("minimized"!==t.windowMode&&"minimizing"!==t.windowMode){t.windowMode="minimizing";var r=t.frame;t.saveCurrentWindowStats("minimize_mode"),r.setResizable(!1),t.renderMinimizedMode({animation:t.animationEnabled,callback:e&&e.callback?e.callback:null,duration:e&&e.duration?e.duration:null,toWidth:e&&e.toWidth?e.toWidth:null})}},l.prototype.renderMinimizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("minimize_mode"),o=t.getCurrentWindowStats(),i=t.getCurrentWindowStats();i.height=n.titleBarHeight,e&&e.toWidth&&(i.width=e.toWidth);var a=function(){r.setSize(i.width,i.height,!0),t.windowMode="minimized",t.minimizeButton&&r.hideFrameComponent(t.minimizeButton),t.deminimizeButton&&r.showFrameComponent(t.deminimizeButton,t.styleDisplay),e.callback&&e.callback(t.frame,{eventType:"minimized"}),t.eventListeners.minimized&&t.eventListeners.minimized(t.frame,{eventType:"minimized"})};e&&e.animation?t.animateFrame({toAlpha:1,duration:e.duration?e.duration:t.animationDuration,frame:r,from:o,to:i,callback:a}):a()},l.prototype.doDeminimize=function(e){var t=this,r=t.frame;t.hasWindowStats("minimize_mode")&&(t.minimizeButton&&r.showFrameComponent(t.minimizeButton,t.styleDisplay),t.deminimizeButton&&r.hideFrameComponent(t.deminimizeButton),t.restoreWindow({restorePosition:!1,restoreMode:"minimize_mode",animation:t.animationEnabled,duration:e&&e.duration?e.duration:null,callback:e&&e.callback?e.callback:null,eventType:"deminimized"}))},l.prototype.doHide=function(e){var t=this;if("hid"!==t.windowMode&&"hiding"!==t.windowMode){t.windowMode="hiding";var r=t.frame;t.saveCurrentWindowStats("hide_mode"),r.setResizable(!1);var n={animation:t.animationEnabled};e&&i({op:"overwrite-merge",object1:n,object2:e}),t.renderHideMode(n)}},l.prototype.renderHideMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("hide_mode"),i=t.getCurrentWindowStats(),a={x:0,y:0},l=e.toElement;e.offset&&(a=e.offset);var s=0,d=0,u=e&&e.align?e.align:"LEFT_TOP";if(u&&o.LEFT_TOP!=u){if(o.HCENTER_TOP==u)s=i.left+i.width/2,d=i.top;else if(o.RIGHT_TOP==u)s=i.left+i.width,d=i.top;else if(o.LEFT_VCENTER==u)s=i.left,d=i.top+i.height/2;else if(o.HCENTER_VCENTER==u)s=i.left+i.width/2,d=i.top+i.height/2;else if(o.RIGHT_VCENTER==u)s=i.left+i.width,d=i.top+i.height/2;else if(o.LEFT_BOTTOM==u)s=i.left,d=i.top+i.height;else if(o.HCENTER_BOTTOM==u)s=i.left+i.width/2,d=i.top+i.height;else if(o.RIGHT_BOTTOM==u)s=i.left+i.width,d=i.top+i.height;else if("ABSOLUTE"==u)if(l){var c=l.getBoundingClientRect();t.isWindowManagerFixed?(s=c.left,d=c.top):(s=c.left+window.pageXOffset,d=c.top+window.pageYOffset)}else s=a.x,d=a.y}else s=i.left,d=i.top;var m={left:s,top:d,width:0,height:n.titleBarHeight},p=function(){r.setSize(m.width,m.height,!0),t.windowMode="hid",e&&e.callback&&e.callback(t.frame,{eventType:"hid"}),t.eventListeners.hid&&t.eventListeners.hid(t.frame,{eventType:"hid"})};r.hideAllVisibleFrameComponents(),e&&e.animation?t.animateFrame({fromAlpha:e.silent?0:1,toAlpha:0,ease:!0,duration:e.duration?e.duration:t.animationDuration,frame:r,from:i,to:m,callback:p}):p()},l.prototype.doDehide=function(e){this.frame;this.hasWindowStats("hide_mode")&&this.restoreWindow({duration:e&&e.duration?e.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:this.animationEnabled,forceShowFrameComponents:!0,callback:e&&e.callback?e.callback:null,eventType:"dehided"})},l.prototype.loadWindowStats=function(e){return this.statsStore[e]},l.prototype.saveCurrentWindowStats=function(e){var t=this,r=t.getCurrentWindowStats();if(t.hasWindowStats(e)){var n=t.loadWindowStats(e),o=!t.windowStatsEquals(r,n);return o&&(t.statsStore[e]=r),o}return t.statsStore[e]=r,!0},l.prototype.windowStatsEquals=function(e,t){return!(!e||!t)&&JSON.stringify(e)===JSON.stringify(t)},l.prototype.clearWindowStats=function(e){this.statsStore[e]=null},l.prototype.hasWindowStats=function(e){return this.statsStore[e]},l.prototype.getCurrentWindowStats=function(){var e=this.frame,t=parseInt(e.titleBar.style.height,10),r=e.frameBorderWidthDefault,n=e.frameBorderWidthFocused;return{left:e.getLeft(),top:e.getTop(),width:e.getWidth(),height:e.getHeight(),titleBarHeight:t,frameBorderWidthDefault:r,frameBorderWidthFocused:n,resizable:e.resizable,movable:e.movable}},l.prototype.restoreWindow=function(e){var t=this,r=t.frame,n=t.loadWindowStats(e.restoreMode),o=t.getCurrentWindowStats();r.frameBorderWidthDefault=n.frameBorderWidthDefault,r.frameBorderWidthFocused=n.frameBorderWidthFocused,r.htmlElement.style.borderWidth=r.frameBorderWidthFocused;var i=function(){e&&0==e.restorePosition&&(n.left=o.left,n.top=o.top),r.setPosition(n.left,n.top);r.setSize(n.width,n.height,!0),r.setResizable(n.resizable),r.setMovable(n.movable),t.clearWindowStats(e.restoreMode),t.keyListener&&(window.removeEventListener("keydown",t.keyListener),r.iframe&&r.iframe.contentWindow.removeEventListener("keydown",t.keyListener),t.keyListener=null),t.windowMode="default",e&&e.forceShowFrameComponents&&r.showAllVisibleFrameComponents(),r.show();var i="restored";e&&e.eventType&&(i=e.eventType),e&&e.callback&&e.callback(t.frame,{eventType:i}),t.eventListeners[i]&&t.eventListeners[i](t.frame,{eventType:i})};e&&e.animation?t.animateFrame({duration:e.duration?e.duration:t.animationDuration,frame:r,fromAlpha:0,toAlpha:1,from:o,to:n,callback:i}):i(),t.eventListenerHelper.removeEventListener(window,"resize",t.resizeListener)},l.prototype.animateFrame=function(e){var t=isNaN(e.fromAlpha)?1:e.fromAlpha,r=e.from,o=e.to;(new n).set(e.frame).setDuration(e.duration?e.duration:this.animationDuration).fromPosition(r.left,r.top,"LEFT_TOP").toPosition(o.left,o.top,"LEFT_TOP").fromWidth(r.width).fromHeight(r.height).toWidth(o.width).toHeight(o.height).fromAlpha(t).toAlpha(0==e.toAlpha?0:1).ease(e.ease).start(0,!1).then((function(t){e.callback()}))},l.prototype.doCommand=function(e,t){var r=this;"maximize"===e&&r._defaultFunctionMaximize(r.frame),"demaximize"===e&&r._defaultFunctionDemaximize(r.frame),"restore"===e&&r._defaultFunctionRestoreFromFullscreen(r.frame),"minimize"===e&&r._defaultFunctionMinimize(r.frame),"deminimize"===e&&r._defaultFunctionDeminimize(r.frame),"hide"===e&&r._defaultFunctionHide(r.frame),"dehide"===e&&r._defaultFunctionDehide(r.frame)},l.prototype._defaultFunctionMaximize=function(e,t){var r=this.opts,n={fullScreen:!0===r.maximizeWithoutTitleBar,restoreKey:r.restoreKey?r.restoreKey:"Escape",restoreDuration:r.restoreDuration};this.maximizeParam&&i({op:"overwrite-merge",object1:n,object2:this.maximizeParam}),e.control.doMaximize(n)},l.prototype._defaultFunctionDemaximize=function(e,t){e.control.doDemaximize({})},l.prototype._defaultFunctionRestoreFromFullscreen=function(e,t){e.control.doDemaximize({duration:this.restoreDuration?this.restoreDuration:null,callback:this.restoreCallback?this.restoreCallback:null})},l.prototype._defaultFunctionMinimize=function(e,t){e.control.doMinimize(this.minimizeParam)},l.prototype._defaultFunctionDeminimize=function(e,t){e.control.doDeminimize(this.deminimizeParam)},l.prototype._defaultFunctionHide=function(e,t){var r={align:"CENTER_BOTTOM"};this.hideParam&&(r=this.hideParam),e.control.doHide(r)},l.prototype._defaultFunctionDehide=function(e,t){e.control.doDehide(this.dehideParam)},l.prototype.setupDefaultEvents=function(){var e=this;if(e.maximizeButton&&e.frame.on(e.maximizeButton,"click",e._defaultFunctionMaximize.bind(e)),e.demaximizeButton&&e.frame.on(e.demaximizeButton,"click",e._defaultFunctionDemaximize.bind(e)),e.minimizeButton&&e.frame.on(e.minimizeButton,"click",e._defaultFunctionMinimize.bind(e)),e.deminimizeButton&&e.frame.on(e.deminimizeButton,"click",e._defaultFunctionDeminimize.bind(e)),e.hideButton&&e.frame.on(e.hideButton,"click",e._defaultFunctionHide.bind(e)),e.hideButtons)for(var t in e.hideButtons){var r=e.hideButtons[t];r&&e.frame.on(r,"click",e._defaultFunctionHide.bind(e))}},e.exports=l},function(e,t){var r=function(){function e(){var e=this;e._timerId=null,e._isRunning=!1,e._timerInterval=0,e._internalCallback=function(){e._timerMethod&&e._timerMethod(e);e._isRunning&&(clearTimeout(e._timerId),e._timerId=setTimeout(e._internalCallback,e._timerInterval))},e._timerMethod=null}return e.prototype.setCallback=function(e){return this._timerMethod=e,this},e.prototype.setIntervalMillis=function(e){return this._timerInterval=e,this},e.prototype.stopTimer=function(){return this._isRunning=!1,this},e.prototype.startTimer=function(){var e=this;return e._timerInterval>0&&(e._timerId=setTimeout(e._internalCallback,e._timerInterval),e._isRunning=!0),e},e}();e.exports=r},function(e,t,r){var n=r(7),o=r(20);function i(){var e=this;this.showTitleBar=!0,this.showCloseButton=!0,this.titleBarCaption="",this.titleBarCaptionFontSize="12px",this.titleBarCaptionFontWeight="bold",this.titleBarHeight="24px",this.useIframe=!1,this.useFrame=!0,this.titleBarClassNameDefault=null,this.titleBarClassNameFocused=null,this.setUseIFrame=function(t){return e.useIframe=t,e.useFrame=!t,e},this.titleBarCaptionLeftMargin="5px",this.titleBarColorDefault=null,this.titleBarColorFocused=null,this.titleBarCaptionColorDefault="",this.titleBarCaptionColorFocused="",this.titleBarCaptionTextShadow="0 1px 0 rgba(255,255,255,.7)",this.titleBarCaptionTextAlign="center",this.titleBarBorderBottomDefault="1px solid rgba(0,0,0,0.2)",this.titleBarBorderBottomFocused=null,this.frameBorderRadius="6px",this.frameBorderWidthDefault="1px",this.frameBorderWidthFocused=this.frameBorderWidthDefault,this.frameBorderColorDefault="rgba(1, 1, 1, 0.2)",this.frameBorderColorFocused=this.frameBorderColorDefault,this.frameBorderStyle="solid",this.frameBoxShadow="2px 3px 16px rgba(0,0,0,.6)",this.frameBackgroundColor="transparent",this._partsBuilder=null,this.frameComponents=[],this.frameHeightAdjust=1,this.resizeAreaWidth=20,this.resizeAreaHeight=20,this.resizeAreaOffset=0,this.resizeAreaVisible=!1,this.getFrameInnerBorderRadius=function(t,r){return t?r?{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthFocused,10)+"px"}:{frameAppearance:e,innerBorderRadius:parseInt(t.frameBorderRadius,10)-parseInt(t.frameBorderWidthDefault,10)+"px"}:null},this.onInitialize=function(){if(e.showCloseButton){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.size=14,r.captionShiftYpx=0,r.captionFontRatio=1,r.borderRadius=2,r.backgroundColorPressed="transparent",r.backgroundColorDefault="transparent",r.caption="✖",r.captionColorDefault="gray",r.captionColorFocused="gray",r.captionColorHovered="silver",r.captionColorPressed="black",r.borderWidth=0,r.borderColorDefault="#aaaaaa",r.borderStyle="solid";var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-10,-18,"RIGHT_TOP")}},this.onTitleBarStyleInitialize=function(){}}i.prototype.getPartsBuilder=function(){return null===this._partsBuilder&&(this._partsBuilder=new n),this._partsBuilder},i.prototype.initialize=function(){this.onInitialize()},i.prototype.addFrameComponent=function(e,t,r,n,i,a){var l=new o(e,t,r,n,i,a);return t._onTakeFocus&&t._onReleaseFocus&&l.setFocusCallback(t._onTakeFocus,t._onReleaseFocus),this.frameComponents.push(l),l},e.exports=i},function(e,t,r){function n(){this.imageDefault=null,this.imageHovered=null,this.imagePressed=null,this.imageFocused=null,this.imageStore={}}r(6)(n,r(8)),n.prototype._setImage=function(e,t,r){var n=this.imageStore[e];if(n)return n;var o=document.createElement("img");if(o.src=e,t&&r){var i="margin:0px;padding:0px;width:"+t+"px;height:"+r+"px";o.setAttribute("style",i)}return this.imageStore[e]=o,o},n.prototype.setSrc=function(e){var t=this;e.default&&(t.imageDefault=t._setImage(e.default,e.width,e.height)),e.hovered&&(t.imageHovered=t._setImage(e.hovered,e.width,e.height)),e.pressed&&(t.imagePressed=t._setImage(e.pressed,e.width,e.height)),e.focused&&(t.imageFocused=t._setImage(e.focused,e.width,e.height))},e.exports=n},function(e,t){e.exports=function(e){this.childMenuHTML="",this.childMenuWidth=0,this.childMenuAlign="LEFT",this.yOffset=0,this.xOffset=0}},function(e,t){function r(e,t,r,n,o,i){var a=this;a.id=e,a.x=r,a.y=n,a.frame=null,a._focusTakingCallabck=null,a._focusReleasingCallabck=null,a.frameComponentAlign=o||CALIGN.LEFT_TOP,a.htmlElement=t,a.htmlElement.style.zIndex=50,a.htmlElement.setAttribute("component-id",e),i&&i.childMenu?a.childMenu=i.childMenu:t.querySelector(".jsframe-child-menu")&&(a.childMenu=t.querySelector(".jsframe-child-menu"))}r.prototype.setFocusCallback=function(e,t){this._focusTakingCallabck=e,this._focusReleasingCallabck=t},r.prototype.setFrame=function(e){this.frame=e,this.htmlElement.parentObject=e,this.updateAlign()},r.prototype.updateAlign=function(){var e=this,t=e.frameComponentAlign,r=e.frame,n=e.htmlElement.style;n.userSelect="none";var o=e.x,i=e.y,a=r.getWidth(),l=r.getHeight(),s=n.width,d=n.height;CALIGN.LEFT_TOP==t?(n.left=o+"px",n.top=i+"px"):CALIGN.HCENTER_TOP==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=i+"px"):CALIGN.RIGHT_TOP==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=i+"px"):CALIGN.LEFT_VCENTER==t?(n.left=o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.HCENTER_VCENTER==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.RIGHT_VCENTER==t?(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)/2-parseInt(d)/2+i+"px"):CALIGN.LEFT_BOTTOM==t?(n.left=o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.HCENTER_BOTTOM==t?(n.left=parseInt(a)/2-parseInt(s)/2+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px"):CALIGN.RIGHT_BOTTOM==t&&(n.left=parseInt(a)-parseInt(s)+o+"px",n.top=parseInt(l)-parseInt(d)+i+"px")},r.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},r.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},e.exports=r},function(e,t,r){r(22);var n=r(9);e.exports.getStyle=function(e,t){var r={titleBar:{greenButton:"maximize"}},o=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="11px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=null,e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="26px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="1px solid #b1aeb1",e.titleBarBorderBottomFocused=e.titleBarBorderBottomDefault,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#acacac",e.frameBorderColorFocused="#acacac",e.frameBorderStyle="solid",e.frameBoxShadow="0px 0px 20px rgba(0, 0, 0, 0.3)",e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-yosemite-focused",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-yosemite-default",titleBarClassNameFocused:"jsframe-preset-style-yosemite-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQoU2NkIBIwEqmOAa6wgZWlH6Sp4fefQjCNxkdRyMjAUPCf4f8CkEJGBsaE/wwME2AaUaxuYGWeD1IAUgjS0PD7byLMaaQrBLmJKKuJ9gyhYCI6HAGlFDALf9s7eQAAAABJRU5ErkJggg==",n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVElEQVQoU2NkIBIwoqvjixFoAIl9WvIBTMMAhkLeGP79IMnPSz46kq8QZN1/hv/2IBMYGRgMQPR/BoYLED7jQZAzwFYTrRDZLdRxI7KJRAcPrvAHAATYKgvLH0fAAAAAAElFTkSuQmCC";"fullscreen"===o.titleBar.greenButton&&(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAZElEQVQoU2NkIBIwEqmOAUWhQIKAwL8///czMDAYwAz4tOQjWA1cIUjRhwUfPqArxlDIF8N/nomF0RFdMTaF/xkYGC6gK/605KMhitV8MfwghSCAohhkAy6FKIphniIvePCFKQDzGzsLS+7n2AAAAABJRU5ErkJggg==");var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",a="margin:0px;padding:0px;width:10px;height:10px",l=document.createElement("img");l.src=n,l.setAttribute("style",a);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAiUlEQVQoU2NkwAIEogQMPiz7cAFZihGbQt4Y/v0MjIwLPy/+sAAmj1MhIwODw39GxkSYYrwKQabBFGNVyBfL1///P6MBzFrmf4yFjCCH/2X63w93C+P/C58WfypEdzvYRN5YgQTG///ng61iYDjweclHR6wKkRUTVAhTzPD/fzxeE2FWYQtskBwAKwQ7tVjAL4MAAAAASUVORK5CYII=",s.setAttribute("style",a);var d=document.createElement("img");d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMUlEQVQoU2NkIBIwEqmOgUYKa7w4Ghj+M9hjdQYjw8GWbT8awFYTrZAYD9HIM8RYDQBsEAwLkq4IAgAAAABJRU5ErkJggg==",d.setAttribute("style",a);var u=document.createElement("img");u.src=r,u.setAttribute("style",a);var c=document.createElement("img");c.src=i,c.setAttribute("style","margin:0px;padding:0px;width:6px;height:6px");var m=t.buildImageButtonAppearance();m.imageDefault=c,m.imageHovered=u,m.imagePressed=u,m.imageFocused=c,m.size=10,m.borderRadius=5,m.borderWidth=1,m.borderColorDefault="#c6c6c6",m.borderColorFocused="#d3524e",m.borderColorHovered=m.borderColorFocused,m.borderColorPressed="#e64842",m.borderStyleDefault="solid",m.borderStyleFocused=m.borderStyleDefault,m.borderStyleHovered=m.borderStyleDefault,m.borderStylePressed=m.borderStyleDefault,m.backgroundColorDefault="#d0d0d0",m.backgroundColorFocused="#fc615c",m.backgroundColorHovered=m.backgroundColorFocused,m.backgroundColorPressed=m.backgroundColorDefault,m.setSrc({default:i,focused:i,hovered:r,pressed:r});var p=t.buildButton(m),h=8,f=-19,y="LEFT_TOP";e.addFrameComponent(o.closeButtonName||"closeButton",p,h,f,y);var b=t.buildImageButtonAppearance(m);b.borderColorDefault="#c6c6c6",b.borderColorFocused="#e6b347",b.borderColorHovered=b.borderColorFocused,b.borderColorPressed="#e1a12d",b.backgroundColorDefault="#d0d0d0",b.backgroundColorFocused="#fdbe40",b.backgroundColorHovered=b.backgroundColorFocused,b.backgroundColorPressed=b.backgroundColorDefault,b.imageDefault=c,b.imageHovered=d,b.imagePressed=d,b.imageFocused=c;var g=t.buildButton(b),v=t.buildButton(b);v.style.display="none";h=28,f=-19,y="LEFT_TOP";e.addFrameComponent("minimizeButton",g,h,f,y),e.addFrameComponent("deminimizeButton",v,h,f,y);var C=t.buildImageButtonAppearance(m);C.borderColorDefault="#c6c6c6",C.borderColorFocused="#67b657",C.borderColorHovered=C.borderColorFocused,C.borderColorPressed="#00af38",C.backgroundColorDefault="#d0d0d0",C.backgroundColorFocused="#34ca49",C.backgroundColorHovered=C.backgroundColorFocused,C.backgroundColorPressed=C.backgroundColorDefault,C.imageDefault=c,C.imageHovered=l,C.imagePressed=l,C.imageFocused=c;var B=t.buildButton(C),E=t.buildImageButtonAppearance(m);E.borderColorDefault="#c6c6c6",E.borderColorFocused="#67b657",E.borderColorHovered=E.borderColorFocused,E.borderColorPressed="#00af38",E.backgroundColorDefault="#d0d0d0",E.backgroundColorFocused="#34ca49",E.backgroundColorHovered=E.backgroundColorFocused,E.backgroundColorPressed=E.backgroundColorDefault,E.imageDefault=c,E.imageHovered=s,E.imagePressed=s,E.imageFocused=c;var w=t.buildButton(E);w.style.display="none";h=48,f=-19,y="LEFT_TOP";e.addFrameComponent("dezoomButton",w,h,f,y),e.addFrameComponent("zoomButton",B,h,f,y)},e}},function(e,t,r){var n=r(0),o=r(23);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-yosemite-default {\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f5f5f5, color-stop(1.0, #f8f7f2)));\n background: -webkit-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: -moz-linear-gradient(top, #f5f5f5, #f8f7f2);\n background: linear-gradient(top, #f5f5f5, #f8f7f2);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-yosemite-focused {\n /* (c)2015 Johannes Jakob\n Made with <3 in Germany */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #ebebeb, color-stop(1.0, #d5d5d5)));\n background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);\n background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);\n background: linear-gradient(top, #ebebeb, #d5d5d5);\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n",""]),e.exports=t},function(e,t,r){r(25),e.exports.getStyle=function(e){return e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#9b9a9b",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="30px",e.titleBarColorDefault=null,e.titleBarColorFocused=null,e.titleBarBorderBottomDefault="solid 1px #aaaaaa",e.titleBarBorderBottomFocused="solid 1px #1883d7",e.frameBorderRadius="0px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#1883d7",e.frameBorderStyle="solid",e.frameBoxShadow=null,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-redstone-focused",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-redstone-default",titleBarClassNameFocused:"jsframe-preset-style-redstone-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=45,r.height=28,r.borderRadius=0,r.borderWidth=0,r.borderColorDefault="#c6c6c6",r.borderColorFocused="#fc615c",r.borderColorHovered=r.borderColorFocused,r.borderColorPressed="#e64842",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#e81123",r.backgroundColorPressed="#f1707a",r.caption="╳",r.captionColorDefault="#9b9a9b",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=0,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("closeButton",n,o,i,a);var l=t.buildTextButtonAppearance();l.width=45,l.height=28,l.borderRadius=0,l.borderWidth=0,l.borderColorDefault="#c6c6c6",l.borderColorFocused="#fc615c",l.borderColorHovered=l.borderColorFocused,l.borderColorPressed="#e64842",l.borderStyleDefault="solid",l.borderStyleFocused=l.borderStyleDefault,l.borderStyleHovered=l.borderStyleDefault,l.borderStylePressed=l.borderStyleDefault,l.backgroundColorDefault="white",l.backgroundColorFocused="white",l.backgroundColorHovered="#e5e5e5",l.backgroundColorPressed="#cccccc",l.caption="☐",l.captionColorDefault="#9b9a9b",l.captionColorFocused="black",l.captionColorHovered="black",l.captionColorPressed="black",l.captionShiftYpx=1,l.captionFontRatio=.55;var s=t.buildTextButton(l);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("maximizeButton",s,o,i,a);var d=t.buildTextButtonAppearance();d.width=45,d.height=28,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="white",d.backgroundColorFocused="white",d.backgroundColorHovered="#e5e5e5",d.backgroundColorPressed="#cccccc",d.caption="_",d.captionColorDefault="#9b9a9b",d.captionColorFocused="black",d.captionColorHovered="black",d.captionColorPressed="black",d.captionShiftYpx=-2,d.captionFontRatio=.3;var u=t.buildTextButton(d);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";e.addFrameComponent("minimizeButton",u,o,i,a);var c=t.buildTextButtonAppearance();c.width=45,c.height=28,c.borderRadius=0,c.borderWidth=0,c.borderColorDefault="#c6c6c6",c.borderColorFocused="#fc615c",c.borderColorHovered=c.borderColorFocused,c.borderColorPressed="#e64842",c.borderStyleDefault="solid",c.borderStyleFocused=c.borderStyleDefault,c.borderStyleHovered=c.borderStyleDefault,c.borderStylePressed=c.borderStyleDefault,c.backgroundColorDefault="white",c.backgroundColorFocused="white",c.backgroundColorHovered="#e5e5e5",c.backgroundColorPressed="#cccccc",c.caption="▣",c.captionColorDefault="#9b9a9b",c.captionColorFocused="black",c.captionColorHovered="black",c.captionColorPressed="black",c.captionShiftYpx=1,c.captionFontRatio=.6;var m=t.buildTextButton(c);o=-92,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";m.style.display="none",e.addFrameComponent("deminimizeButton",m,o,i,a);var p=t.buildTextButtonAppearance();p.width=45,p.height=28,p.borderRadius=0,p.borderWidth=0,p.borderColorDefault="#c6c6c6",p.borderColorFocused="#fc615c",p.borderColorHovered=p.borderColorFocused,p.borderColorPressed="#e64842",p.borderStyleDefault="solid",p.borderStyleFocused=p.borderStyleDefault,p.borderStyleHovered=p.borderStyleDefault,p.borderStylePressed=p.borderStyleDefault,p.backgroundColorDefault="white",p.backgroundColorFocused="white",p.backgroundColorHovered="#e5e5e5",p.backgroundColorPressed="#cccccc",p.caption="❏",p.captionColorDefault="#9b9a9b",p.captionColorFocused="black",p.captionColorHovered="black",p.captionColorPressed="black",p.captionShiftYpx=1,p.captionFontRatio=.55;var h=t.buildTextButton(p);o=-46,i=-parseInt(e.titleBarHeight),a="RIGHT_TOP";h.style.display="none",e.addFrameComponent("restoreButton",h,o,i,a)},e}},function(e,t,r){var n=r(0),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-redstone-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-redstone-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t,r){r(28),e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="12px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="10px",e.titleBarCaptionColorDefault="#4d494d",e.titleBarCaptionColorFocused="#4d494d",e.titleBarHeight="5px",e.titleBarColorDefault="white",e.titleBarColorFocused="white",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="6px",e.frameBorderWidthDefault="1px",e.frameBorderWidthFocused="1px",e.frameBorderColorDefault="#aaaaaa",e.frameBorderColorFocused="#aaaaaa",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="white",e.frameComponents=new Array,e.frameHeightAdjust=2,e.getTitleBarStyle=function(){return e.focusedFrameOnly?{titleBarClassNameDefault:"jsframe-preset-style-popup-focused",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}:{titleBarClassNameDefault:"jsframe-preset-style-popup-default",titleBarClassNameFocused:"jsframe-preset-style-popup-focused"}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=1,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="white",r.backgroundColorFocused="white",r.backgroundColorHovered="#eeeeee",r.backgroundColorPressed="#dddddd",r.backgroundBoxShadow="2px 2px 5px rgba(0, 0, 0, 0.5)",r.caption="✖",r.captionColorDefault="black",r.captionColorFocused="black",r.captionColorHovered="white",r.captionColorPressed="white",r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r),o=-6-parseInt(e.titleBarHeight);e.addFrameComponent("closeButton",n,10,o,"RIGHT_TOP")},e}},function(e,t,r){var n=r(0),o=r(29);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-popup-default {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n\n.jsframe-preset-style-popup-focused {\n background: white;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n",""]),e.exports=t},function(e,t){e.exports.getStyle=function(e){return e.showTitleBar=!1,e.showCloseButton=!0,e.titleBarCaptionFontSize="0px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin="0px",e.titleBarCaptionColorDefault="transparent",e.titleBarCaptionColorFocused="transparent",e.titleBarHeight="0px",e.titleBarColorDefault="transparent",e.titleBarColorFocused="transparent",e.titleBarBorderBottomDefault=null,e.titleBarBorderBottomFocused=null,e.frameBorderRadius="10px",e.frameBorderWidthDefault="0px",e.frameBorderWidthFocused="0px",e.frameBorderColorDefault="transparent",e.frameBorderColorFocused="transparent",e.frameBorderStyle="solid",e.frameBoxShadow="2px 2px 15px rgba(0, 0, 0, 0.5)",e.frameBackgroundColor="transparent",e.frameComponents=[],e.frameHeightAdjust=1,e.captionClor="darkgray",e.pullUpDisabled=!1,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){var t=e.getPartsBuilder(),r=t.buildTextButtonAppearance();r.width=20,r.height=20,r.borderRadius=10,r.borderWidth=0,r.borderColorDefault="#cccccc",r.borderColorFocused="#cccccc",r.borderColorHovered="#dddddd",r.borderColorPressed="#eeeeee",r.borderStyleDefault="solid",r.borderStyleFocused=r.borderStyleDefault,r.borderStyleHovered=r.borderStyleDefault,r.borderStylePressed=r.borderStyleDefault,r.backgroundColorDefault="transparent",r.backgroundColorFocused="transparent",r.backgroundColorHovered="transparent",r.backgroundColorPressed="transparent",r.backgroundBoxShadow=null,r.caption="✖",r.captionColorDefault=e.captionClor,r.captionColorFocused=e.captionClor,r.captionColorHovered=e.captionClor,r.captionColorPressed=e.captionClor,r.captionShiftYpx=1,r.captionFontRatio=.6;var n=t.buildTextButton(r);e.addFrameComponent("closeButton",n,-6,3,"RIGHT_TOP")},e}},function(e,t,r){r(32);var n=r(9);function o(e,t,r){var n,o=e.getPartsBuilder(),a=0;for(var l in n=r?t.titleBar.buttonsOnLeft:t.titleBar.buttons){var s=n[l],d=o.buildTextButtonAppearance();d.fa=s.fa,d.width=t.titleBar.buttonWidth,d.height=t.titleBar.buttonHeight,d.borderRadius=0,d.borderWidth=0,d.borderColorDefault="#c6c6c6",d.borderColorFocused="#fc615c",d.borderColorHovered=d.borderColorFocused,d.borderColorPressed="#e64842",d.borderStyleDefault="solid",d.borderStyleFocused=d.borderStyleDefault,d.borderStyleHovered=d.borderStyleDefault,d.borderStylePressed=d.borderStyleDefault,d.backgroundColorDefault="transparent",d.backgroundColorFocused="transparent",d.backgroundColorHovered="transparent",d.backgroundColorPressed="transparent";var u=i(t.titleBar.buttonColor);d.captionColorDefault=t.titleBar.buttonColor,d.captionColorFocused=t.titleBar.buttonColor,d.captionColorHovered=u.hovered,d.captionColorPressed=u.pressed,d.captionShiftYpx=0,d.captionFontRatio=1;var c=o.buildTextButton(d);s.visible?c.style.display="flex":(r?a-=t.titleBar.buttonWidth:a+=t.titleBar.buttonWidth,c.style.display="none");var m,p,h=parseInt(e.titleBarHeight),f=a,y=-h+(h-d.height)/2;m=r?"LEFT_TOP":"RIGHT_TOP",s.childMenuHTML&&((p=document.createElement("div")).id=s.name+"_child_menu",p.innerHTML=s.childMenuHTML,p.style.position="absolute",p.style.width=(s.childMenuWidth?s.childMenuWidth:200)+"px",p.style.top=parseInt(c.style.top,10)+parseInt(c.style.height,10)/2+h/2+"px",p.style.left=c.style.left,p.style.display="none",c.appendChild(p)),e.addFrameComponent(s.name,c,f,y,m,{childMenu:p}),a+=r?t.titleBar.buttonWidth:-t.titleBar.buttonWidth}}function i(e){var t=document.createElement("canvas");t.height=1,t.width=1;var r=t.getContext("2d");r.fillStyle=e,r.fillRect(0,0,1,1);var n=r.getImageData(0,0,1,1).data,o=n[0],i=n[1],a=n[2],l=n[3]/255,s=.85*l;return{src:"rgb("+o+","+i+","+a+","+s+")",hovered:"rgb("+o+","+i+","+a+","+s+")",pressed:"rgb("+o+","+i+","+a+","+.75*l+")"}}e.exports.getStyle=function(e,t){var r={border:{color:"transparent",width:0,radius:6},control:{maximizeWithoutTitleBar:!1,restoreKey:"Escape"},titleBar:{color:"white",background:"black",leftMargin:20,height:30,fontSize:12,buttonWidth:36,buttonHeight:16,buttonColor:"white",buttons:[{fa:"fas fa-times",name:"closeButton",visible:!0},{fa:"far fa-window-maximize",name:"maximizeButton",visible:!0},{fa:"far fa-window-restore",name:"restoreButton",visible:!1},{fa:"far fa-window-minimize",name:"minimizeButton",visible:!0},{fa:"fas fa-caret-up",name:"deminimizeButton",visible:!1}],buttonsOnLeft:[]}},i=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize=i.titleBar.fontSize+"px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=i.titleBar.leftMargin+"px",e.titleBarCaptionColorDefault=i.titleBar.color,e.titleBarCaptionColorFocused=i.titleBar.color,e.titleBarCaptionTextShadow=null,e.titleBarCaptionTextAlign="left",e.titleBarHeight=i.titleBar.height+"px",e.titleBarColorDefault=i.titleBar.background,e.titleBarColorFocused=i.titleBar.background,e.titleBarBorderBottomDefault="solid 0px #aaaaaa",e.titleBarBorderBottomFocused="solid 0px #1883d7",e.frameBorderRadius=i.border.radius+"px",e.frameBorderWidthDefault=i.border.width+"px",e.frameBorderWidthFocused=i.border.width+"px",e.frameBorderColorDefault=i.border.color,e.frameBorderColorFocused=i.border.color,e.frameBorderStyle="solid",e.frameBoxShadow=i.border.shadow,e.frameBackgroundColor="transparent",e.frameComponents=new Array,e.frameHeightAdjust=0,e.getTitleBarStyle=function(){return e.focusedFrameOnly,{titleBarClassNameDefault:" ",titleBarClassNameFocused:" "}},e.onInitialize=function(){o(e,i,!1),o(e,i,!0)},e}},function(e,t,r){var n=r(0),o=r(33);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){(t=r(1)(!1)).push([e.i,".jsframe-preset-style-material-default {\n background: black;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n}\n\n.jsframe-preset-style-material-focused {\n background: black;\n border-top-left-radius: 36px;\n border-top-right-radius: 36px;\n}\n",""]),e.exports=t},function(e,t,r){var n=r(2);e.exports.getPresetWindow=function(e){var t={appearanceName:"yosemite",appearanceParam:{}},r={};e&&(r=e);var o="fullscreen"===r.maximizeButtonBehavior,i="minimize"===r.minimizeButtonBehavior?"minimizeButton":null,a="hide"===r.minimizeButtonBehavior?"minimizeButton":null,l="hide"===r.closeButtonBehavior?"custom-close-button":null,s=r.control,d=l,u=r.closeButtonName;return o&&(t.appearanceParam.titleBar={greenButton:"fullscreen"}),t.appearanceParam.closeButtonName=d||u||"closeButton",t.setupPresetWindow=function(e){var t={maximizeButton:"zoomButton",maximizeParam:{fullScreen:o,restoreKey:"Escape"},demaximizeButton:"dezoomButton",deminimizeButton:"deminimizeButton",minimizeButton:i,hideButtons:[a,l],hideParam:{align:"CENTER_CENTER",duration:300},dehideParam:{duration:300},styleDisplay:"inline",animation:!0,animationDuration:100};s&&n({op:"overwrite-merge",object1:t,object2:s}),e.setControl(t)},t}}])})); \ No newline at end of file