From 0f50e02a71ed48ebf31ac7daec29f131ecb61b36 Mon Sep 17 00:00:00 2001 From: Ivy Date: Wed, 3 Jul 2024 00:08:28 +0200 Subject: [PATCH] feat `cdn`: add jsframe --- modules/jsframe/jsframe.min.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 modules/jsframe/jsframe.min.js diff --git a/modules/jsframe/jsframe.min.js b/modules/jsframe/jsframe.min.js new file mode 100644 index 0000000..edf2a00 --- /dev/null +++ b/modules/jsframe/jsframe.min.js @@ -0,0 +1,3 @@ +/*! For license information please see jsframe.min.js.LICENSE.txt */ +!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]}}(self,(()=>(()=>{var e={8:function(e){e.exports=(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw i}}}}function o(e,t){if(e){if("string"==typeof e)return a(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(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rd});var d=function(){function e(t){if(i(this,e),this.onListeners=new Map,this.onlyListeners=new Map,t){var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,l=new u;this.onListeners.set(a,l)}}catch(e){o.e(e)}finally{o.f()}}this.childEventEmitters=[],this.onIntercepterFuncs={}}return s(e,[{key:"on",value:function(e,t){var n=this.onListeners.get(e);if(n||(n=new u,this.onListeners.set(e,n)),n.addListenerFunc(t),this.onIntercepterFuncs)for(var o=0,a=Object.entries(this.onIntercepterFuncs);o0}},{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;){var o=t.value;if("Function"!==this.typeOf(o)&&"AsyncFunction"!==this.typeOf(o))throw Error('[@riversun/event-emitter] listenerFunction you set is not a function ( is type of A "'.concat(this.typeOf(o),'" ). listenerFunction:"').concat(o,'".Check args of #only method or #on method.'));o(e)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeListener",value:function(e){this.removeArrayItemOnce(this.listenerFuncs,e)}},{key:"removeArrayItemOnce",value:function(e,t){var r=e.indexOf(t);return r>-1&&e.splice(r,1),e}},{key:"typeOf",value:function(e){return Object.prototype.toString.call(e).slice(8,-1)}}]),e}(),c=function(){function e(){i(this,e),this.listenerFuncMap=new Map}return s(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;){var o=t.value;if("Function"!==this.typeOf(o))throw Error('[@riversun/event-emitter] listenerFunction you set is not a function. listenerFunction:"'.concat(o,'".Check args of #only method or #on method.'));o(e)}}catch(e){r.e(e)}finally{r.f()}}},{key:"typeOf",value:function(e){return Object.prototype.toString.call(e).slice(8,-1)}}]),e}();return t.default})()},212:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".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}",""]);const a=o},181:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".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",""]);const a=o},369:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".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",""]);const a=o},890:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".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",""]);const a=o},437:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".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",""]);const a=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function i(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(e):"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(a);var i=null;a&&a.listenerName&&(i=a.listenerName);var l=null;a&&a.once&&(delete a.once,a.callbackOnce=!0,l=function(n){r(n),o.removeEventListener(e,t,null,a)});var s={listenerName:null,success:!0};l?e.addEventListener(t,l,a):e.addEventListener(t,r,a);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!==i){if(u.has(i))throw Error('The listenerName "'.concat(i,'" is already used for the specified event type ').concat(t));u.set(i,{listener:r,onceListener:l,options:a}),s.listenerName=i}else{var c="listener-".concat(this.listenerNum);a||(a={}),a.listenerName=c,u.set(c,{listener:r,onceListener:l,options:a}),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.");if("Function"!==this.typeOf(r)&&"Null"!==this.typeOf(r))throw Error('Type of 3rd arg should be a "Function" or "Null".');this._checkTypeOfOptions(n);var o=null;n&&n.listenerName&&(o=n.listenerName);var a={success:!1,message:"unknown error"},i=this.evTargetListenersMap.get(e);if(!i)return a.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have any listeners."),a;var l=i.get(t);if(!l)return a.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listeners.'),a;if(o){var s=l.get(o);if(!s)return a.message="DOM element ".concat(e,"(id=").concat(e.id,") doesn't have \"").concat(t,'" listener "').concat(o,'"'),a;l.delete(o),s.options&&s.options.callbackOnce?e.removeEventListener(t,s.onceListener,s.options):e.removeEventListener(t,s.listener,s.options),a.success=!0}else if(!o){if(!r)return a.message="options.listenerName is not found",a;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),a.success=!0}else a.success=!1,a.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 a}},{key:"getEventListeners",value:function(e,t){return e?t?this._getEventListenersWith2Args(e,t):this._getEventListenersWith1Arg(e):[]}},{key:"getAllEventListeners",value:function(){var e=this,t=new Map;return this.evTargetListenersMap.forEach((function(r,n){var o=n,i=e._getEventListenersWith1Arg(o),l=new Map;t.set(o,l);var s,d=a(i);try{for(d.s();!(s=d.n()).done;){var u=s.value;l.set(u.eventType,u.listeners)}}catch(e){d.e(e)}finally{d.f()}})),t}},{key:"_getEventListenersWith1Arg",value:function(e){var t=[],r=this.evTargetListenersMap.get(e);if(!r)return t;var n,i=a(r);try{for(i.s();!(n=i.n()).done;){var l,s=o(n.value,2),d=s[0],u=s[1],c=[],m=a(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){i.e(e)}finally{i.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 i,l=a(o.values());try{for(l.s();!(i=l.n()).done;){var s=i.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 a=o.get(r);return this._getFrozenListenerDef(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);return!!o&&!!o.get(r)}},{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=a(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=a(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;this.removeEventListener(e,t,null,i.options)}}catch(e){o.e(e)}finally{o.f()}}}else{var l,s=a(r);try{for(s.s();!(l=s.n()).done;){var d,u=l.value,c=u.eventType,m=a(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=a(this.getAllEventTargets());try{for(n.s();!(t=n.n()).done;){var o,i=t.value,l=this.evTargetListenersMap.get(i),s=a(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,i=a(e);try{for(i.s();!(n=i.n()).done;){var l=o(n.value,2),s=l[0];if(l[1][t]===r)return s}}catch(e){i.e(e)}finally{i.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))}},{key:"typeOf",value:function(e){return Object.prototype.toString.call(e).slice(8,-1)}}])&&s(t.prototype,r),i&&s(t,i),e}()}]).default},886:function(e){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 function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}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 a(e,t){if(e){if("string"==typeof e)return i(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(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(379),o=r.n(n),a=r(212),i={insert:"head",singleton:!1};o()(a.Z,i);const l=a.Z.locals||{}},161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(379),o=r.n(n),a=r(181),i={insert:"head",singleton:!1};o()(a.Z,i);const l=a.Z.locals||{}},774:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(379),o=r.n(n),a=r(369),i={insert:"head",singleton:!1};o()(a.Z,i);const l=a.Z.locals||{}},455:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(379),o=r.n(n),a=r(890),i={insert:"head",singleton:!1};o()(a.Z,i);const l=a.Z.locals||{}},633:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(379),o=r.n(n),a=r(437),i={insert:"head",singleton:!1};o()(a.Z,i);const l=a.Z.locals||{}},379:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=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]}}(),i=[];function l(e){for(var t=-1,r=0;r{var t={LEFT_TOP:"LEFT_TOP",HCENTER_TOP:"CENTER_TOP",RIGHT_TOP:"RIGHT_TOP",LEFT_VCENTER:"LEFT_CENTER",HCENTER_VCENTER:"CENTER_CENTER"};t.CENTER=t.HCENTER_VCENTER,t.RIGHT_VCENTER="RIGHT_CENTER",t.LEFT_BOTTOM="LEFT_BOTTOM",t.HCENTER_BOTTOM="CENTER_BOTTOM",t.RIGHT_BOTTOM="RIGHT_BOTTOM",e.exports=t},704:(e,t,r)=>{"use strict";r(82);var n=r(8),o=r(76),a=r(295),i=r(171),l=r(970),s=r(260),d=r(243),u=r(94),c={yosemite:r(933),redstone:r(35),popup:r(182),toast:r(282),material:r(145)},m={yosemite:r(726)},p={},h="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,f=!h,y=h;function v(e,t,r,n,o,a,i,l){var s=this;if(s.movable=!0,s.id=e,s.property={},s.extra={},s.parentCanvas=null,s.htmlElement=null,s.pullUpDisabled=!1,l&&(s.pullUpDisabled=l.pullUpDisabled),s.htmlElement=document.createElement(p.CBEAN.HTML_ELEMENT),s.htmlElement.id=p.CBEAN.HTML_ELEMENT_ID_PREFIX+e,s.htmlElement.style.position="absolute",s.htmlElement.style.left=parseInt(t,10)+"px",s.htmlElement.style.top=parseInt(r,10)+"px",s.htmlElement.style.width=parseInt(n,10)+"px",s.htmlElement.style.height=parseInt(o,10)+"px",null!==a&&(s.htmlElement.style.zIndex=a),s.htmlElement.style.borderColor="#000000",s.htmlElement.style.fontSize="1px",s.htmlElement.parent=s,f&&(s.htmlElement.onmousedown=s.onmouseDown),y&&"ontouchstart"in window){s.htmlElement.ontouchstart=function(e){s.onmouseDown.bind(this)(e)}}s.htmlElement.typeName=p.CBEAN.TYPE_NAME,s.htmlElement.usage="nothing",s.htmlElement.isRangeLimited=!1,s.htmlElement.argX=1,s.htmlElement.argY=1,s.externalAreaClickedListener=null,s.onMoveListener=null}function g(e,t,r,n,o,a){var i=this;i.enablePullUp=!0,i.currentObject=null,i.onTopObject=null,i.offsetX=0,i.offsetY=0,i.mouseDownSource=null,i.id=t,i.canvasElement=null,i.parentElement=e,i.beanList=new Array,i.beanIdName={},i.beanNameId={},i.eventData=new function(){this.x=0,this.y=0,this.screenX=0,this.screenY=0,this.deltaX=0,this.deltaY=0,this.isMoved=!1,this.targetTypeName=null,this.targetUsage=null,this.targetObject=null},i.baseZIndex=0,i.setBaseZIndex=function(e){i.baseZIndex=e},i.getBaseZIndex=function(){return i.baseZIndex},i.canvasElement=document.createElement(p.CANVAS.HTML_ELEMENT),i.canvasElement.style.zIndex=2e3,i.canvasElement.id=i.id,i.canvasElement.style.boxSizing="border-box",i.canvasElement.style.position="absolute",i.canvasElement.style.left=parseInt(r)+"px",i.canvasElement.style.top=parseInt(n)+"px",i.canvasElement.style.width=parseInt(o)+p.CANVAS.WIDTH_ADJUST_20180722+"px",i.canvasElement.style.height=parseInt(a)+p.CANVAS.HEIGHT_ADJUST_20180722+"px",i.canvasElement.style.backgroundColor="transparent",i.canvasElement.style.borderStyle="none",i.canvasElement.style.margin="0px",i.canvasElement.style.borderWidth="0px",i.canvasElement.style.borderColor="transparent",i.parentElement.appendChild(i.canvasElement)}function b(e,t,r,n,a,i,l,s){var d=this;b.superConstructor.call(this,e,t,r,n,a,i,l,s),d.anchor=o.LEFT_TOP,d.showTitleBar=s.showTitleBar,d.canvasNetHeight=null,d.canvasNetWidth=null,d.frameHeightAdjust=s.frameHeightAdjust,d.frameComponentMap={},d.canvas=null,d.myCanvasId=null,d.floatingButton=null,d.titleBarClassNameDefault="jsframe-titlebar-default",d.titleBarClassNameFocused="jsframe-titlebar-focused",d.titleBarHeight=s.titleBarHeight,d.titleBarCaption=s.titleBarCaption,d.titleBarCaptionLeftMargin=s.titleBarCaptionLeftMargin,d.titleBarCaptionFontSize=s.titleBarCaptionFontSize,d.titleBarCaptionFontWeight=s.titleBarCaptionFontWeight,d.titleBarBorderBottomDefault=s.titleBarBorderBottomDefault,d.titleBarBorderBottomFocused=s.titleBarBorderBottomFocused,d.titleBarCaptionTextShadow=s.titleBarCaptionTextShadow,d.titleBarCaptionTextAlign=s.titleBarCaptionTextAlign,d.titleAdjustWidth=2,d.windowId=e,d.exBorderWidth=0,d.myCanvasId=e+"_canvas";var u=document.createElement("img");if(u.src="",u.style.position="absolute",u.style.left="2px",u.style.top="2px",u.style.width="16px",u.style.height="16px",u.style.visibility="hidden",d.titleBar=document.createElement("div"),d.titleBar.className="jsframetitlebar",d.showTitleBar){if(d.titleBar.id=e+"_title",d.titleBar.style.position="absolute",d.titleBar.style.boxSizing="border-box",d.titleBar.style.top="0px",d.titleBar.style.left="0px",d.titleBar.style.width=n-d.titleAdjustWidth+p.CANVAS.WIDTH_ADJUST_20180722+"px",d.titleBar.style.userSelect="none",d.titleBarHeight){var c=0;d.titleBarBorderBottomDefault&&(c=0),d.titleBar.style.height=parseInt(d.titleBarHeight,10)+0+"px"}d.titleBarColorDefault&&(d.titleBar.style.background=d.titleBarColorDefault),d.titleBar.style.zIndex=0,d.titleBar.style.color=d.titleBarCaptionColorDefault,d.titleBar.style.fontSize=d.titleBarCaptionFontSize,d.titleBar.style.fontWeight=d.titleBarCaptionFontWeight,d.titleBar.style.textShadow=d.titleBarCaptionTextShadow,d.titleBar.style.textAlign=d.titleBarCaptionTextAlign,d.titleBar.style.lineHeight=d.titleBar.style.height,d.titleBar.style.borderBottom=d.titleBarBorderBottomDefault,d.titleBar.style.overflow="hidden";var m=document.createTextNode(""),h=document.createElement("span");h.id=d.id+"_titleBarText",null!=d.titleBarCaptionLeftMargin?(h.style.position="absolute",h.style.left=parseInt(d.titleBarCaptionLeftMargin,10)+"px"):(h.style.position="absolute",h.style.left="0px",h.style.right="0px"),h.style.top="0px",h.appendChild(m),d.titleBar.appendChild(h)}d.htmlElement.appendChild(d.titleBar);var v=parseInt(d.titleBarHeight,10)-c,C=parseInt(d.titleAdjustWidth,10);if(d.showTitleBar||(v=0,C=0,c=0),d.canvasNetWidth=n-C,d.canvasNetHeight=a-v-C-1-c+d.frameHeightAdjust,d.htmlElement.style.cursor="move",d.canvas=new g(d.htmlElement,d.myCanvasId,0,v,n-C,a-v-C),d.canvas.enablePullUp=!1,d.canvas.canvasElement.style.backgroundColor=p.CFRAME.CANVAS_ELEMENT_BGCOLOR,d.canvas.canvasElement.style.cursor="default",f&&(d.canvas.canvasElement.onmousedown=d.canvasMouseDown),y&&"ontouchstart"in window){d.canvas.canvasElement.ontouchstart=function(e){var t=e.changedTouches[0];d.canvasMouseDown.bind(this)(t)}}d.canvas.canvasElement.parentCFrame=d;var B,w,x,F=parseInt(d.canvas.canvasElement.style.width,10),A=parseInt(d.canvas.canvasElement.style.height,10),T=s.resizeAreaWidth,I=s.resizeAreaHeight,D=s.resizeAreaOffset;s.resizeAreaVisible&&(B="rgba(255, 0, 0, 0.5)",w="rgba(0, 0, 255, 0.5)",x="rgba(0, 255, 0, 0.5)");var S=new E(d.myCanvasId+"_RD",F+D,A+D,T,I,0,"RD",B);S.htmlElement.style.cursor="se-resize",S.htmlElement.argX=0,S.htmlElement.argY=0;var _=new E(d.myCanvasId+"_DD",0,A+D,F+D,I,0,"DD",w);_.htmlElement.style.cursor="n-resize",_.htmlElement.argX=0,_.htmlElement.argY=0;var k=new E(d.myCanvasId+"_RR",F+D,0,T,A+D,0,"RR",x);for(var M in k.htmlElement.style.cursor="w-resize",k.htmlElement.argY=0,k.htmlElement.argX=0,d.canvas.addBean(S),d.canvas.addBean(_),d.canvas.addBean(k),d.removeMarkers=function(){d.canvas.removeBean(S.id),d.canvas.removeBean(_.id),d.canvas.removeBean(k.id),d.htmlElement.style.cursor="default"},d.removeMarkers2=function(){d.canvas.removeBean(S.id),d.canvas.removeBean(_.id),d.canvas.removeBean(k.id)},d.enableMarkers=function(e){e?(S.htmlElement.style.display="flex",_.htmlElement.style.display="flex",k.htmlElement.style.display="flex",S.htmlElement.style.cursor="se-resize",_.htmlElement.style.cursor="n-resize",k.htmlElement.style.cursor="w-resize"):(S.htmlElement.style.display="none",_.htmlElement.style.display="none",k.htmlElement.style.display="none")},s.frameComponents){var z=s.frameComponents[M];z.setFrame(d),"closeButton"==z.id&&(z.htmlElement.onclick=d.close),z.htmlElement.querySelector(".jsframe-child-menu")&&d.eventListenerHelper.addEventListener(z.htmlElement,"click",(function(e){var t=e.target.getAttribute("component-id");if(d.hideFrameComponentChildMenus({exceptFrameComponentId:t}),t){var r=d.getFrameComponentElement(t).querySelector(".jsframe-child-menu");r&&("table"==r.style.display?r.style.display="none":r.style.display="table")}}),{listenerName:"frame-component_child-menu-listener"}),d.addFrameComponent(z)}d.htmlElement.style.backgroundColor="transparent",d.htmlElement.oncontextmenu=this.contextMenu;d.caribValue=0,d.exBorderWidth&&(d.htmlElement.style.borderWidth=d.exBorderWidth+"px"),d.htmlElement.style.width=parseInt(d.htmlElement.style.width,10)-0+"px",d.htmlElement.style.height=parseInt(d.htmlElement.style.height,10)-0+1+"px",d.htmlElement.typeName="cwindow",d.htmlElement.overflow="auto",d.htmlElement.style.boxSizing="content-box",s.frameBorderStyle&&(d.htmlElement.style.borderStyle=s.frameBorderStyle),s.frameBoxShadow&&(d.htmlElement.style.boxShadow=s.frameBoxShadow),parseInt(s.frameBorderWidthDefault,10)>=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 C(e,t,r,o,a,i){var l=t,s=r,d=o,c=a,m=i.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=i.titleBarColorFocused,this.titleBarColorDefault=i.titleBarColorDefault,this.titleBarCaptionColorDefault=i.titleBarCaptionColorDefault,this.titleBarCaptionColorFocused=i.titleBarCaptionColorFocused,C.superConstructor.call(p,e,l,s,d,c,m,null,i),p.frameBorderColorDefault=i.frameBorderColorDefault,p.frameBorderColorFocused=i.frameBorderColorFocused,p.frameBorderWidthDefault=i.frameBorderWidthDefault,p.frameBorderWidthFocused=i.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=i.showTitleBar,p.getFrameInnerBorderRadius=i.getFrameInnerBorderRadius,p.frameBorderRadius=i.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(i.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=i.frameBackgroundColor,p.canvas.canvasElement.appendChild(p.transparence)),p.eventEmitter=new n,p.appearance=i}function B(e,t,r,n,o,a){B.superConstructor.call(this,e,t,r,n,o,a);var i=this;document.addEventListener("click",(function(e){for(var t in i.beanList){i.beanList[t].onBodyClicked(e)}}))}function E(e,t,r,n,o,a,i,l){var s=this;E.superConstructor.call(this,e,t,r,n,o,a,i),s.htmlElement.typeName="cmarkerwindow",s.htmlElement.usage=i,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 w(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(f&&(document.addEventListener("mouseup",o),document.addEventListener("mousemove",a)),y){if("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(),a.bind(this)(e)}))}}function o(e){r.windowManager.windowMouseUp(e)}function a(e){r.windowManager.windowMouseMove(e)}r.windowManager=new B(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",v.prototype.getWindowType=function(){return"CBeanFrame"},v.prototype.setOnMoveListener=function(e){this.onMoveListener=e},v.prototype._onMove=function(e){this.onMoveListener&&this.onMoveListener(e)},v.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},v.prototype.setParentCanvas=function(e){var t=this;return t.parentCanvas=e,t.htmlElement.parentCanvas=t.parentCanvas,t},v.prototype.setOnExternalAreaClickedListener=function(e){return this.externalAreaClickedListener=e,this},v.prototype.onBodyClicked=function(e){var t=this,r=e.pageX,n=e.pageY,o=parseInt(t.htmlElement.style.left),a=parseInt(t.htmlElement.style.top),i=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(i,10),f=parseInt(a,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 v=t.currentObject.parent;v&&v._onMove&&v._onMove()}return t.eventData.deltaX=h,t.eventData.deltaY=f,t.eventData}return null},g.prototype.mouseUp=function(e){this.currentObject=null,this.mouseDownSource=null},g.prototype.pullUp=function(e){var t=this,r=[],n=t.beanList;for(var o in n)r.push(n[o]);var a=n[e];t.enablePullUp&&t.pullUpSort(a,r,t.baseZIndex),t.onTopObject=a},g.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},g.prototype.removeBean=function(e){var t=this.beanList,r=t[e];this.canvasElement.removeChild(r.htmlElement),delete t[e]},g.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 a=0;for(var i in r)a++;e.htmlElement.style.zIndex=a+t.baseZIndex,e.setParentCanvas(t),this.canvasElement.appendChild(e.htmlElement)},g.prototype.getParentElement=function(){return this.parentElement},p.CFRAME={},p.CFRAME.CANVAS_ELEMENT_BGCOLOR="transparent",p.CFRAME.MODAL_BACKGROUND_FRAME_ID_PREFIX="window__modal_window_background_",i(b,v),b.prototype.setTitleBarClassName=function(e,t){var r=this;return e&&(r.titleBarClassNameDefault=e,r.titleBarClassNameFocused=e),t&&(r.titleBarClassNameFocused=t),r},b.prototype.addFrameComponent=function(e){var t=this;return t.frameComponentMap[e.id]=e,t.canvas.canvasElement.appendChild(e.htmlElement),t},b.prototype.getFrameComponentElement=function(e){return this.frameComponentMap[e]?this.frameComponentMap[e].htmlElement:null},b.prototype.removeFrameComponentById=function(e){var t=this,r=t.frameComponentMap[e];t.canvas.canvasElement.removeChild(r.htmlElement),delete t.frameComponentMap[e]},b.prototype.showFrameComponent=function(e,t){var r=this.getFrameComponentElement(e);return r&&(r.style.display=t||"flex"),this},b.prototype.hideFrameComponent=function(e){var t=this.getFrameComponentElement(e);return t&&(t.style.display="none"),this},b.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"}},b.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"}},b.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")}},b.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},b.prototype.resize=function(e,t,r,n){var o=this,a=parseInt(o.htmlElement.style.left,10),i=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(a+e,10)+"px",o.htmlElement.style.top=parseInt(i+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"))}},b.prototype.canvasMouseDown=function(e){null==this.parentCFrame.parentCanvas.mouseDownSource&&(this.parentCFrame.parentCanvas.mouseDownSource="childcanvas")},b.prototype.mouseUp=function(e){this.canvas.mouseUp(e)},b.prototype.close=function(e){var t=this.parentObject.parentCanvas,r=this.parentObject,n=r.id;r.closeInternally(e,t,n)},b.prototype.closeFrame=function(e){var t=this.parentCanvas;this.closeInternally(e,t,this.windowId)},b.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))},b.prototype.setOnCloseFrameListener=function(e){this.onCloseFrameListener=e},b.prototype.contextMenu=function(){return!1},b.prototype.setTitleBarTextColor=function(e){this.titleBar.style.color=e},b.prototype.setPosition=function(e,t,r){var n=this,o=n.getWidth(),a=n.getHeight();return n._setPositionInternally(e,t,r,o,a),n},b.prototype._setPositionInternally=function(e,t,r,n,a){var i=this;r&&(i.anchor=r),r&&o.LEFT_TOP!=r?o.HCENTER_TOP==r?(i.htmlElement.style.left=-n/2+e+"px",i.htmlElement.style.top=t+"px"):o.RIGHT_TOP==r?(i.htmlElement.style.left=-n+e+"px",i.htmlElement.style.top=t+"px"):o.LEFT_VCENTER==r?(i.htmlElement.style.left=e+"px",i.htmlElement.style.top=-a/2+t+"px"):o.HCENTER_VCENTER==r?(i.htmlElement.style.left=-n/2+e+"px",i.htmlElement.style.top=-a/2+t+"px"):o.RIGHT_VCENTER==r?(i.htmlElement.style.left=-n+e+"px",i.htmlElement.style.top=-a/2+t+"px"):o.LEFT_BOTTOM==r?(i.htmlElement.style.left=e+"px",i.htmlElement.style.top=-a+t+"px"):o.HCENTER_BOTTOM==r?(i.htmlElement.style.left=-n/2+e+"px",i.htmlElement.style.top=-a+t+"px"):o.RIGHT_BOTTOM==r&&(i.htmlElement.style.left=-n+e+"px",i.htmlElement.style.top=-a+t+"px"):(i.htmlElement.style.left=e+"px",i.htmlElement.style.top=t+"px")},b.prototype.getPosition=function(){var e,t,r=this,n=r.getWidth(),a=r.getHeight(),i=r.anchor;return i&&o.LEFT_TOP!=i?o.HCENTER_TOP==i?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)):o.RIGHT_TOP==i?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)):o.LEFT_VCENTER==i?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+a/2):o.HCENTER_VCENTER==i?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+a/2):o.RIGHT_VCENTER==i?(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+a/2):o.LEFT_BOTTOM==i?(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)+a):o.HCENTER_BOTTOM==i?(e=parseInt(r.htmlElement.style.left,10)+n/2,t=parseInt(r.htmlElement.style.top,10)+a):o.RIGHT_BOTTOM==i&&(e=parseInt(r.htmlElement.style.left,10)+n,t=parseInt(r.htmlElement.style.top,10)+a):(e=parseInt(r.htmlElement.style.left,10),t=parseInt(r.htmlElement.style.top,10)),{x:e,y:t,anchor:i}},b.prototype.getLeft=function(){return parseInt(this.htmlElement.style.left,10)},b.prototype.getTop=function(){return parseInt(this.htmlElement.style.top,10)},b.prototype.getWidth=function(){return parseInt(this.htmlElement.style.width,10)},b.prototype.getHeight=function(){return parseInt(this.htmlElement.style.height,10)},b.prototype.getSize=function(){return{width:this.getWidth(),height:this.getHeight()}},b.prototype.setSize=function(e,t,r){var n=this,o=!0;return r&&(o=!1),n.resize(0,0,e-n.getWidth(),t-n.getHeight(),o),n},b.prototype.getWindowId=function(){return this.windowId},b.prototype.getName=function(){return this.property.name},b.prototype.setName=function(e){this.property.name=e},i(C,b),C.prototype.getFrameView=function(){return this.dframe},C.prototype.getFrameAppearance=function(){return this.appearance},C.prototype.setHTML=function(e){this.dframe.innerHTML=e},C.prototype.setFrameInFrame=function(e){var t=this,r=t.dframe?t.dframe.firstChild:null;r&&(Date.now||(Date.now=function(){return(new Date).getTime()}),e?t.eventEmitter.only("resize","fif-listener",(function(){r.setAttribute(a.MATCH_PARENT_CHANGE_MARKER_ATTR,Date.now())})):(r.removeAttribute(a.MATCH_PARENT_CHANGE_MARKER_ATTR),t.eventEmitter.only("resize","fif-listener",(function(){}))))},C.prototype.$=function(e){var t=this;return t.useIframe?t.iframe.contentWindow.document.querySelector(e):t.dframe.querySelector(e)},C.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 a=n.$(e);if(a&&(n.eventListenerHelper.hasEventListener(a,t,"frame-dom-listener")&&n.eventListenerHelper.removeEventListener(a,t,null,{listenerName:"frame-dom-listener"}),n.eventListenerHelper.addEventListener(a,t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}),{listenerName:"frame-dom-listener"})),!a){var i=n.canvas.canvasElement.querySelector(e);i&&i.addEventListener(t,(function(o){r(n,o,{type:"dom",id:e,eventType:t})}))}},C.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)}},C.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},C.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},b.prototype.show=function(e){var t=this;return t.htmlElement.style.display="flex",e&&0==e.requestFocus||t.requestFocus(),t},b.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,a=new C(o,0,0,1,1,r);a.setSize(window.innerWidth,window.innerHeight,!0),a.setResizable(!1),window.addEventListener("resize",(function(){a.setSize(window.innerWidth,window.innerHeight,!0)})),t.modalBackgroundWindowId=o,a.hide(),n.addWindow(a),a.setTitle("").getFrameView().innerHTML='
',a.getFrameView().style.backgroundColor="rgba(0,0,0,0.0)",a.show(),t.show(),e&&t.setOnCloseFrameListener(e)},b.prototype.getWindowManager=function(){return this.parentCanvas},C.prototype.hide=function(){return this.htmlElement.style.display="none",this},C.prototype.onmouseDown=function(e){var t=this;document.body.ondrag=function(){return!1},t.decorator=b.prototype.onmouseDown,t.decorator(e);var r=t.parent,n=t.parentCanvas;for(var o in n.beanList){var a=n.beanList[o];o==r.getWindowId()||a.handleReleasingFocus()}r.handleTakingFocus()},C.prototype.mouseUp=function(e){var t=this;(t.overrayTransparentScreenEnabled||t.overrayTransparentScreenOnResize)&&(t.parentCanvas.onTopObject==t?(t.transparence.style.width="0px",t.transparence.style.height="0px"):t.overrayTransparentScreenEnabled&&(t.transparence.style.width=parseInt(t.iframe.width)+"px",t.transparence.style.height=parseInt(t.iframe.height)+"px")),t.decorator=b.prototype.mouseUp,t.decorator(e),document.body.ondrag=null,document.body.onselectstart=null,t.transparence.style.pointerEvents="none"},C.prototype.setMinFrameSize=function(e,t){this.minFrameWidth=e,this.minWindowHeight=t},C.prototype.resize=function(e,t,r,n,o){var a=this;if(!a.resizable&&o)return null;var i=a.getSize(),l=parseInt(a.htmlElement.style.left,10),s=parseInt(a.htmlElement.style.top,10),d=parseInt(a.htmlElement.style.width,10),u=parseInt(a.htmlElement.style.height,10);o&&d+r'+l+""});s||c.hideFrameComponent("closeButton");var m=window.innerWidth/2;"right"==t.hAlign&&(m=-m),"bottom"==t.vAlign&&(a-=window.innerHeight,i-=window.innerHeight),t.createAnimator().set(c).setDuration(300).fromPosition(m,a,"CENTER_CENTER").toPosition(m,i,"CENTER_CENTER").toAlpha(1).fromAlpha(0).start(0,false).then((function(e){return e.setDuration(300).fromPosition(m,i,"CENTER_CENTER").toPosition(m,a,"CENTER_CENTER").fromAlpha(1).toAlpha(.5).start(o,false)})).then((function(e){e.get().closeFrame()}))}},Object.freeze(p),e.exports=w},451:e=>{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}},31:e=>{e.exports=function(e){this.childMenuHTML="",this.childMenuWidth=0,this.childMenuAlign="LEFT",this.yOffset=0,this.xOffset=0}},260:(e,t,r)=>{var n=r(886),o=r(451),a=r(408),i=r(31);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},970:(e,t,r)=>{var n=r(260),o=r(885);function a(){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(){}}a.prototype.getPartsBuilder=function(){var e=this;return null===e._partsBuilder&&(e._partsBuilder=new n),e._partsBuilder},a.prototype.initialize=function(){this.onInitialize()},a.prototype.addFrameComponent=function(e,t,r,n,a,i){var l=new o(e,t,r,n,a,i);return t._onTakeFocus&&t._onReleaseFocus&&l.setFocusCallback(t._onTakeFocus,t._onReleaseFocus),this.frameComponents.push(l),l},e.exports=a},885:(e,t,r)=>{var n=r(76);function o(e,t,r,o,a,i){var l=this;l.id=e,l.x=r,l.y=o,l.frame=null,l._focusTakingCallabck=null,l._focusReleasingCallabck=null,l.frameComponentAlign=a||n.LEFT_TOP,l.htmlElement=t,l.htmlElement.style.zIndex=50,l.htmlElement.setAttribute("component-id",e),i&&i.childMenu?l.childMenu=i.childMenu:t.querySelector(".jsframe-child-menu")&&(l.childMenu=t.querySelector(".jsframe-child-menu"))}o.prototype.setFocusCallback=function(e,t){this._focusTakingCallabck=e,this._focusReleasingCallabck=t},o.prototype.setFrame=function(e){var t=this;t.frame=e,t.htmlElement.parentObject=e,t.updateAlign()},o.prototype.updateAlign=function(){var e=this,t=e.frameComponentAlign,r=e.frame,o=e.htmlElement.style;o.userSelect="none";var a=e.x,i=e.y,l=r.getWidth(),s=r.getHeight(),d=o.width,u=o.height;n.LEFT_TOP==t?(o.left=a+"px",o.top=i+"px"):n.HCENTER_TOP==t?(o.left=parseInt(l)/2-parseInt(d)/2+a+"px",o.top=i+"px"):n.RIGHT_TOP==t?(o.left=parseInt(l)-parseInt(d)+a+"px",o.top=i+"px"):n.LEFT_VCENTER==t?(o.left=a+"px",o.top=parseInt(s)/2-parseInt(u)/2+i+"px"):n.HCENTER_VCENTER==t?(o.left=parseInt(l)/2-parseInt(d)/2+a+"px",o.top=parseInt(s)/2-parseInt(u)/2+i+"px"):n.RIGHT_VCENTER==t?(o.left=parseInt(l)-parseInt(d)+a+"px",o.top=parseInt(s)/2-parseInt(u)/2+i+"px"):n.LEFT_BOTTOM==t?(o.left=a+"px",o.top=parseInt(s)-parseInt(u)+i+"px"):n.HCENTER_BOTTOM==t?(o.left=parseInt(l)/2-parseInt(d)/2+a+"px",o.top=parseInt(s)-parseInt(u)+i+"px"):n.RIGHT_BOTTOM==t&&(o.left=parseInt(l)-parseInt(d)+a+"px",o.top=parseInt(s)-parseInt(u)+i+"px")},o.prototype.handleTakingFocus=function(){this._focusTakingCallabck&&this._focusTakingCallabck()},o.prototype.handleReleasingFocus=function(){this._focusReleasingCallabck&&this._focusReleasingCallabck()},e.exports=o},408:(e,t,r)=>{function n(){this.imageDefault=null,this.imageHovered=null,this.imagePressed=null,this.imageFocused=null,this.imageStore={}}r(171)(n,r(451)),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 a="margin:0px;padding:0px;width:"+t+"px;height:"+r+"px";o.setAttribute("style",a)}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},138:(e,t,r)=>{e.exports={JSFrame:r(704)}},145:(e,t,r)=>{r(161);var n=r(722);function o(e,t,r){var n,o=e.getPartsBuilder(),i=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=a(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?i-=t.titleBar.buttonWidth:i+=t.titleBar.buttonWidth,c.style.display="none");var m,p,h=parseInt(e.titleBarHeight),f=i,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}),i+=r?t.titleBar.buttonWidth:-t.titleBar.buttonWidth}}function a(e){var t=document.createElement("canvas");t.height=1,t.width=1;try{var r=t.getContext("2d");if(r){r.fillStyle=e,r.fillRect(0,0,1,1);var n=r.getImageData(0,0,1,1).data,o=n[0],a=n[1],i=n[2],l=n[3]/255,s=.85*l;return{src:"rgb("+o+","+a+","+i+","+s+")",hovered:"rgb("+o+","+a+","+i+","+s+")",pressed:"rgb("+o+","+a+","+i+","+.75*l+")"}}return{src:"rgb(255,255,255,0.85)",hovered:"rgb(255,255,255,0.85)",pressed:"rgb(255,255,255,0.75)"}}catch(e){return{src:"rgb(255,255,255,0.85)",hovered:"rgb(255,255,255,0.85)",pressed:"rgb(255,255,255,0.75)"}}}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:[]}},a=r;return t&&n.objectAssign(r,t),e.showTitleBar=!0,e.showCloseButton=!0,e.titleBarCaptionFontSize=a.titleBar.fontSize+"px",e.titleBarCaptionFontWeight="normal",e.titleBarCaptionLeftMargin=a.titleBar.leftMargin+"px",e.titleBarCaptionColorDefault=a.titleBar.color,e.titleBarCaptionColorFocused=a.titleBar.color,e.titleBarCaptionTextShadow=null,e.titleBarCaptionTextAlign="left",e.titleBarHeight=a.titleBar.height+"px",e.titleBarColorDefault=a.titleBar.background,e.titleBarColorFocused=a.titleBar.background,e.titleBarBorderBottomDefault="solid 0px #aaaaaa",e.titleBarBorderBottomFocused="solid 0px #1883d7",e.frameBorderRadius=a.border.radius+"px",e.frameBorderWidthDefault=a.border.width+"px",e.frameBorderWidthFocused=a.border.width+"px",e.frameBorderColorDefault=a.border.color,e.frameBorderColorFocused=a.border.color,e.frameBorderStyle="solid",e.frameBoxShadow=a.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,a,!1),o(e,a,!0)},e}},182:(e,t,r)=>{r(774),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}},35:(e,t,r)=>{r(455),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,a=-parseInt(e.titleBarHeight),i="RIGHT_TOP";e.addFrameComponent("closeButton",n,o,a,i);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,a=-parseInt(e.titleBarHeight),i="RIGHT_TOP";e.addFrameComponent("maximizeButton",s,o,a,i);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,a=-parseInt(e.titleBarHeight),i="RIGHT_TOP";e.addFrameComponent("minimizeButton",u,o,a,i);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,a=-parseInt(e.titleBarHeight),i="RIGHT_TOP";m.style.display="none",e.addFrameComponent("deminimizeButton",m,o,a,i);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,a=-parseInt(e.titleBarHeight),i="RIGHT_TOP";h.style.display="none",e.addFrameComponent("restoreButton",h,o,a,i)},e}},282:e=>{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}},933:(e,t,r)=>{r(633);var n=r(722);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 a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=",i="margin:0px;padding:0px;width:10px;height:10px",l=document.createElement("img");l.src=n,l.setAttribute("style",i);var s=document.createElement("img");s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAiUlEQVQoU2NkwAIEogQMPiz7cAFZihGbQt4Y/v0MjIwLPy/+sAAmj1MhIwODw39GxkSYYrwKQabBFGNVyBfL1///P6MBzFrmf4yFjCCH/2X63w93C+P/C58WfypEdzvYRN5YgQTG///ng61iYDjweclHR6wKkRUTVAhTzPD/fzxeE2FWYQtskBwAKwQ7tVjAL4MAAAAASUVORK5CYII=",s.setAttribute("style",i);var d=document.createElement("img");d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMUlEQVQoU2NkIBIwEqmOgUYKa7w4Ghj+M9hjdQYjw8GWbT8awFYTrZAYD9HIM8RYDQBsEAwLkq4IAgAAAABJRU5ErkJggg==",d.setAttribute("style",i);var u=document.createElement("img");u.src=r,u.setAttribute("style",i);var c=document.createElement("img");c.src=a,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:a,focused:a,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 v=t.buildImageButtonAppearance(m);v.borderColorDefault="#c6c6c6",v.borderColorFocused="#e6b347",v.borderColorHovered=v.borderColorFocused,v.borderColorPressed="#e1a12d",v.backgroundColorDefault="#d0d0d0",v.backgroundColorFocused="#fdbe40",v.backgroundColorHovered=v.backgroundColorFocused,v.backgroundColorPressed=v.backgroundColorDefault,v.imageDefault=c,v.imageHovered=d,v.imagePressed=d,v.imageFocused=c;var g=t.buildButton(v),b=t.buildButton(v);b.style.display="none";h=28,f=-19,y="LEFT_TOP";e.addFrameComponent("minimizeButton",g,h,f,y),e.addFrameComponent("deminimizeButton",b,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}},726:(e,t,r)=>{var n=r(886);e.exports.getPresetWindow=function(e){var t={appearanceName:"yosemite",appearanceParam:{}},r={};e&&(r=e);var o="fullscreen"===r.maximizeButtonBehavior,a="minimize"===r.minimizeButtonBehavior?"minimizeButton":null,i="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:a,hideButtons:[i,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}},243:(e,t,r)=>{var n=r(673);function o(){this.fps=30,this.durationMillis=200,this.targetFrame=null,this._crrAlpha=1,this._toAlpha=1,this._crrWidth=0,this._crrHeight=0,this._toWidth=0,this._toHeight=0,this._toX=0,this._toY=0,this.pinnedAnimationEnabled=!1,this._pinX=0,this._pinY=0,this._pinAnchor=null}o.prototype.set=function(e){var t=this;t.targetFrame=e,t.fromWidth(e.getWidth()),t.fromHeight(e.getHeight()),t.toWidth(e.getWidth()),t.toHeight(e.getHeight());var r=e.getPosition();return t.fromPosition(r.x,r.y,r.anchor),t},o.prototype.get=function(){return this.targetFrame},o.prototype.setDuration=function(e){return this.durationMillis=e,this},o.prototype.setFPS=function(e){return this.fps=e,this},o.prototype.fromPosition=function(e,t,r){var n=this;return n.pinnedAnimationEnabled=!0,n._pinX=e,n._pinY=t,n.toPosition(e,t),r&&(n._pinAnchor=r),n},o.prototype.fromWidth=function(e){return this._crrWidth=e,this},o.prototype.fromHeight=function(e){return this._crrHeight=e,this},o.prototype.toWidth=function(e){return this._toWidth=e,this},o.prototype.toHeight=function(e){return this._toHeight=e,this},o.prototype.fromAlpha=function(e){return this._crrAlpha=e,this},o.prototype.toAlpha=function(e){return this._toAlpha=e,this},o.prototype.ease=function(e){return this._ease=e,this},o.prototype.toPosition=function(e,t){var r=this;return r._toX=e,r._toY=t,r},o.prototype.toX=function(e){return this._toX=e,this},o.prototype.toY=function(e){return this._toY=e,this},o.prototype.start=function(e,t){var r=this,o=r._crrWidth,a=r._crrHeight,i=r._pinX,l=r._pinY,s=r._crrAlpha;return new Promise((function(d,u){var c=parseInt(r.fps*(r.durationMillis/1e3));0==c&&(c=1);var m=(r._toWidth-o)/c,p=(r._toHeight-a)/c,h=(r._toX-i)/c,f=(r._toY-l)/c,y=(r._toAlpha-s)/c;r._ease&&(y/=1.24);var v=r.durationMillis/c,g=0;function b(){var e=new n;e.setIntervalMillis(v),e.setCallback((function(e){if(g==c){var n=r._toWidth,u=r._toHeight,v=i+h*g,b=l+f*g,C=r._toAlpha;r.pinnedAnimationEnabled&&r.targetFrame._setPositionInternally(v,b,r._pinAnchor,n,u),r.targetFrame.htmlElement.style&&(r.targetFrame.htmlElement.style.opacity=C),r.targetFrame.setSize(n,u,!0),r._crrWidth=n,r._crrHeight=u,r._pinX=v,r._pinY=b}if(g==c+1)return e.stopTimer(),r.targetFrame.htmlElement.style&&(r.targetFrame.htmlElement.style.opacity=r._toAlpha),void d(r);n=o+m*g,u=a+p*g,v=i+h*g,b=l+f*g,C=s+y*g;if(r.pinnedAnimationEnabled&&r.targetFrame._setPositionInternally(v,b,r._pinAnchor,n,u),r.targetFrame.htmlElement.style&&(r.targetFrame.htmlElement.style.opacity=C),r.targetFrame.setSize(n,u,!0),0==g){var B=r.targetFrame.parentCanvas;if(B)B.getWindow(r.targetFrame.id)&&r.targetFrame.show({requestFocus:t})}g++})),e.startTimer()}if(e){var C=new n;C.setIntervalMillis(e),C.setCallback((function(e){e.stopTimer(),b()})),C.startTimer()}else b()}))},e.exports=o},673:e=>{var t=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=t},171:e=>{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}},722:e=>{var t="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 r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return e&&"object"===(void 0===e?"undefined":t(e))&&!Array.isArray(e)}e.exports.objectAssign=function e(t){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i{"use strict";var n=r(243),o=r(76),a=r(886),i=r(94);function l(e){this.eventListenerHelper=new i,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),this.maximizeParam&&this.maximizeParam.matchParent&&(this.resizeListener=this.handleOnVirtualResize.bind(this))}l.MATCH_PARENT_CHANGE_MARKER_ATTR="__jsframe-mp-marker",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;if(e&&e.matchParent){var n=r.getWindowManager().getParentElement();if(!t.matchParentResizeObserver){var o=new MutationObserver((function(){t.resizeListener()}));o.observe(n,{attributeFilter:[l.MATCH_PARENT_CHANGE_MARKER_ATTR],attributes:!0}),t.matchParentResizeObserver=o}}else 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,matchParent:!(!e||!e.matchParent)&&e.matchParent})}},l.prototype.renderMaximizedMode=function(e){var t=this,r=t.frame,n=t.loadWindowStats("maximize_mode"),o=0,a=0,i=0,l=0;t.hideTitleBar&&(o=0,a=-n.titleBarHeight);var s=window.innerWidth,d=window.innerHeight;if(e.matchParent){var u=r.getWindowManager().getParentElement();s=u.clientWidth,d=u.clientHeight}t.hideFrameBorder?(i=s,l=d+(t.hideTitleBar?n.titleBarHeight:0)):(i=s-2*n.frameBorderWidthDefault,l=d-2*n.frameBorderWidthDefault+(t.hideTitleBar?n.titleBarHeight:0)),"right"==t.horizontalAlign&&(o=-i),"bottom"==t.verticalAlign&&(a=-l);var c=function(n){var s=n&&n.disableCallback;r.setPosition(o,a),t.hideFrameBorder&&(r.frameBorderWidthDefault=0,r.frameBorderWidthFocused=0,r.htmlElement.style.borderWidth="0px"),r.setSize(i,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:a,width:i,height:l},duration:e.duration?e.duration:t.animationDuration,callback:c}):e&&"handleOnResize"===e.caller?c({disableCallback:!0}):c()},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.handleOnVirtualResize=function(){this.renderMaximizedMode({caller:"handleOnResize",matchParent:!0})},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(),a=t.getCurrentWindowStats();a.height=n.titleBarHeight,e&&e.toWidth&&(a.width=e.toWidth);var i=function(){r.setSize(a.width,a.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:a,callback:i}):i()},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&&a({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"),a=t.getCurrentWindowStats(),i={x:0,y:0},l=e.toElement;e.offset&&(i=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=a.left+a.width/2,d=a.top;else if(o.RIGHT_TOP==u)s=a.left+a.width,d=a.top;else if(o.LEFT_VCENTER==u)s=a.left,d=a.top+a.height/2;else if(o.HCENTER_VCENTER==u)s=a.left+a.width/2,d=a.top+a.height/2;else if(o.RIGHT_VCENTER==u)s=a.left+a.width,d=a.top+a.height/2;else if(o.LEFT_BOTTOM==u)s=a.left,d=a.top+a.height;else if(o.HCENTER_BOTTOM==u)s=a.left+a.width/2,d=a.top+a.height;else if(o.RIGHT_BOTTOM==u)s=a.left+a.width,d=a.top+a.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=i.x,d=i.y}else s=a.left,d=a.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:a,to:m,callback:p}):p()},l.prototype.doDehide=function(e){var t=this;t.frame;t.hasWindowStats("hide_mode")&&t.restoreWindow({duration:e&&e.duration?e.duration:null,restorePosition:!0,restoreMode:"hide_mode",animation:t.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 a=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 a="restored";e&&e.eventType&&(a=e.eventType),e&&e.callback&&e.callback(t.frame,{eventType:a}),t.eventListeners[a]&&t.eventListeners[a](t.frame,{eventType:a})};e&&e.animation?t.animateFrame({duration:e.duration?e.duration:t.animationDuration,frame:r,fromAlpha:0,toAlpha:1,from:o,to:n,callback:a}):a(),t.eventListenerHelper.removeEventListener(window,"resize",t.resizeListener),t.matchParentResizeObserver&&(t.matchParentResizeObserver.disconnect(),t.matchParentResizeObserver=null)},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&&a({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){var r=this;e.control.doDemaximize({duration:r.restoreDuration?r.restoreDuration:null,callback:r.restoreCallback?r.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}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,r(138)})())); +